forked from openstack-k8s-operators/dataplane-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fabricio Aguiar <[email protected]>
- Loading branch information
Showing
6 changed files
with
268 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
193 changes: 193 additions & 0 deletions
193
tests/kuttl/tests/dataplane-service-failure/00-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
--- | ||
apiVersion: ansibleee.openstack.org/v1beta1 | ||
kind: OpenStackAnsibleEE | ||
metadata: | ||
generation: 1 | ||
labels: | ||
openstackdataplanedeployment: edpm-compute-no-nodes | ||
openstackdataplanenodeset: edpm-compute-no-nodes | ||
openstackdataplaneservice: failed-service | ||
name: failed-service-edpm-compute-no-nodes-edpm-compute-no-nodes | ||
namespace: openstack | ||
ownerReferences: | ||
- apiVersion: dataplane.openstack.org/v1beta1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: OpenStackDataPlaneDeployment | ||
name: edpm-compute-no-nodes | ||
spec: | ||
backoffLimit: 3 | ||
env: | ||
envConfigMapName: openstack-aee-default-env | ||
extraMounts: | ||
- mounts: | ||
- mountPath: /runner/env/ssh_key | ||
name: ssh-key | ||
subPath: ssh_key | ||
- mountPath: /runner/inventory/hosts | ||
name: inventory | ||
subPath: inventory | ||
volumes: | ||
- name: ssh-key | ||
secret: | ||
items: | ||
- key: ssh-privatekey | ||
path: ssh_key | ||
secretName: dataplane-ansible-ssh-private-key-secret | ||
- name: inventory | ||
secret: | ||
items: | ||
- key: inventory | ||
path: inventory | ||
secretName: dataplanenodeset-edpm-compute-no-nodes | ||
extraVars: | ||
edpm_override_hosts: edpm-compute-no-nodes | ||
edpm_service_type: failed-service | ||
name: openstackansibleee | ||
play: | | ||
- hosts: localhost | ||
gather_facts: no | ||
name: kuttl play | ||
tasks: | ||
- name: Copy absent file | ||
ansible.builtin.shell: | | ||
set -euxo pipefail | ||
cp absent failed_op | ||
preserveJobs: true | ||
restartPolicy: Never | ||
serviceAccountName: edpm-compute-no-nodes | ||
uid: 1001 | ||
status: | ||
JobStatus: Failed | ||
conditions: | ||
- message: 'AnsibleExecutionJob error occurred Internal error occurred: Job has | ||
reached the specified backoff limit. Check job logs' | ||
reason: Error | ||
severity: Warning | ||
status: "False" | ||
type: Ready | ||
- message: 'AnsibleExecutionJob error occurred Internal error occurred: Job has | ||
reached the specified backoff limit. Check job logs' | ||
reason: Error | ||
severity: Warning | ||
status: "False" | ||
type: AnsibleExecutionJobReady | ||
observedGeneration: 1 | ||
--- | ||
apiVersion: dataplane.openstack.org/v1beta1 | ||
kind: OpenStackDataPlaneNodeSet | ||
metadata: | ||
generation: 1 | ||
name: edpm-compute-no-nodes | ||
namespace: openstack | ||
spec: | ||
nodeTemplate: | ||
ansibleSSHPrivateKeySecret: dataplane-ansible-ssh-private-key-secret | ||
managementNetwork: ctlplane | ||
nodes: {} | ||
preProvisioned: true | ||
services: | ||
- failed-service | ||
tlsEnabled: true | ||
status: | ||
conditions: | ||
- message: 'Deployment error occurred in failed-service service error execution.name | ||
failed-service-edpm-compute-no-nodes-edpm-compute-no-nodes execution.namespace | ||
openstack execution.status.jobstatus: Failed' | ||
reason: Error | ||
severity: Error | ||
status: "False" | ||
type: Ready | ||
- message: 'Deployment error occurred in failed-service service error execution.name | ||
failed-service-edpm-compute-no-nodes-edpm-compute-no-nodes execution.namespace | ||
openstack execution.status.jobstatus: Failed' | ||
reason: Error | ||
severity: Error | ||
status: "False" | ||
type: DeploymentReady | ||
- message: Input data complete | ||
reason: Ready | ||
status: "True" | ||
type: InputReady | ||
- message: NodeSetDNSDataReady ready | ||
reason: Ready | ||
status: "True" | ||
type: NodeSetDNSDataReady | ||
- message: NodeSetIPReservationReady ready | ||
reason: Ready | ||
status: "True" | ||
type: NodeSetIPReservationReady | ||
- message: ServiceAccount created | ||
reason: Ready | ||
status: "True" | ||
type: ServiceAccountReady | ||
- message: Setup complete | ||
reason: Ready | ||
status: "True" | ||
type: SetupReady | ||
deploymentStatuses: | ||
edpm-compute-no-nodes: | ||
- message: 'Deployment error occurred in failed-service service error execution.name | ||
failed-service-edpm-compute-no-nodes-edpm-compute-no-nodes execution.namespace | ||
openstack execution.status.jobstatus: Failed' | ||
reason: Error | ||
severity: Warning | ||
status: "False" | ||
type: NodeSetDeploymentReady | ||
- message: 'Deployment error occurred in failed-service service error execution.name | ||
failed-service-edpm-compute-no-nodes-edpm-compute-no-nodes execution.namespace | ||
openstack execution.status.jobstatus: Failed' | ||
reason: Error | ||
severity: Warning | ||
status: "False" | ||
type: ServiceFailedServiceDeploymentReady | ||
observedGeneration: 1 | ||
--- | ||
apiVersion: dataplane.openstack.org/v1beta1 | ||
kind: OpenStackDataPlaneDeployment | ||
metadata: | ||
generation: 1 | ||
name: edpm-compute-no-nodes | ||
namespace: openstack | ||
spec: | ||
backoffLimit: 3 | ||
deploymentRequeueTime: 15 | ||
nodeSets: | ||
- edpm-compute-no-nodes | ||
status: | ||
conditions: | ||
- message: 'Deployment error occurred nodeSet: edpm-compute-no-nodes error: execution.name | ||
failed-service-edpm-compute-no-nodes-edpm-compute-no-nodes execution.namespace | ||
openstack execution.status.jobstatus: Failed' | ||
reason: Error | ||
severity: Warning | ||
status: "False" | ||
type: Ready | ||
- message: 'Deployment error occurred nodeSet: edpm-compute-no-nodes error: execution.name | ||
failed-service-edpm-compute-no-nodes-edpm-compute-no-nodes execution.namespace | ||
openstack execution.status.jobstatus: Failed' | ||
reason: Error | ||
severity: Warning | ||
status: "False" | ||
type: DeploymentReady | ||
- message: Input data complete | ||
reason: Ready | ||
status: "True" | ||
type: InputReady | ||
nodeSetConditions: | ||
edpm-compute-no-nodes: | ||
- message: 'Deployment error occurred in failed-service service error execution.name | ||
failed-service-edpm-compute-no-nodes-edpm-compute-no-nodes execution.namespace | ||
openstack execution.status.jobstatus: Failed' | ||
reason: Error | ||
severity: Warning | ||
status: "False" | ||
type: NodeSetDeploymentReady | ||
- message: 'Deployment error occurred in failed-service service error execution.name | ||
failed-service-edpm-compute-no-nodes-edpm-compute-no-nodes execution.namespace | ||
openstack execution.status.jobstatus: Failed' | ||
reason: Error | ||
severity: Warning | ||
status: "False" | ||
type: ServiceFailedServiceDeploymentReady | ||
observedGeneration: 1 |
Oops, something went wrong.