Skip to content

Commit 31b57bc

Browse files
Merge pull request #960 from archana203/rabbitmq_checks
Add an additional verification checks for Rabbitmq CR deployment
2 parents bb30ba6 + 87500b1 commit 31b57bc

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

docs_user/modules/proc_deploying-backend-services.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,19 @@ $ for CELL in $(echo $RENAMED_CELLS); do
427427
+
428428
The given cells names are later referred to by using the environment variable `RENAMED_CELLS`.
429429

430+
* Ensure that the statuses of all the Rabbitmq and Galera CRs are `Setup complete`:
431+
+
432+
----
433+
$ oc get Rabbitmqs,Galera
434+
NAME STATUS MESSAGE
435+
rabbitmq.rabbitmq.openstack.org/rabbitmq True Setup complete
436+
rabbitmq.rabbitmq.openstack.org/rabbitmq-cell1 True Setup complete
437+
438+
NAME READY MESSAGE
439+
galera.mariadb.openstack.org/openstack True Setup complete
440+
galera.mariadb.openstack.org/openstack-cell1 True Setup complete
441+
----
442+
430443
* Verify that the `OpenStackControlPlane` CR is waiting for deployment
431444
of the `openstackclient` pod:
432445
+

tests/roles/backend_services/tasks/main.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,20 @@
123123
delay: 5
124124
# TODO- debug value (was 2)
125125

126+
- name: verify that MariaDB and RabbitMQ CR's deployed, for all defined cells
127+
ansible.builtin.shell: |
128+
{{ shell_header }}
129+
{{ oc_header }}
130+
oc get {{ item }} -o json | jq -e '[ .items[].status.conditions[] | select(.type == "Ready") | .message] | select(length > 0) | all(. == "Setup complete")'
131+
register: service_cr_result
132+
until: service_cr_result.stdout == "true"
133+
retries: 60
134+
delay: 5
135+
failed_when: service_cr_result.rc != 0 and service_cr_result.stdout != "true"
136+
loop:
137+
- "Galera"
138+
- "Rabbitmqs"
139+
126140
- name: Patch openstack upstream dns server to set the correct value for the environment
127141
when: upstream_dns is defined
128142
ansible.builtin.shell: |

0 commit comments

Comments
 (0)