Skip to content

Commit 20c3126

Browse files
Merge pull request #866 from jistr/b/control-plane-verification-14744
Control plane verification fixes
2 parents dfa58eb + 7d96934 commit 20c3126

File tree

4 files changed

+39
-8
lines changed

4 files changed

+39
-8
lines changed

docs_user/modules/proc_adopting-the-identity-service.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,9 @@ done
7979
----
8080
$ openstack endpoint list | grep keystone
8181
----
82+
83+
. Wait for the `OpenStackControlPlane` resource to become `Ready`:
84+
+
85+
----
86+
$ oc wait --for=condition=Ready --timeout=1m OpenStackControlPlane openstack
87+
----

docs_user/modules/proc_deploying-backend-services.adoc

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ endif::[]
2626

2727
* If you enabled TLS everywhere (TLS-e) on the {OpenStackShort} environment, you must copy the `tls` root CA from the {OpenStackShort} environment to the `rootca-internal` issuer.
2828

29-
* There are free PVs available for MariaDB and RabbitMQ.
29+
* There are free PVs available for Galera and RabbitMQ.
3030
ifeval::["{build}" != "downstream"]
3131
+
3232
For developer/CI environments driven by install_yamls, make sure
@@ -415,18 +415,26 @@ spec:
415415

416416
.Verification
417417

418-
* Verify that MariaDB and RabbitMQ are running for all defined cells:
418+
* Verify that the Galera and RabbitMQ status is `Running` for all defined cells:
419419
+
420+
[source,yaml]
420421
----
421422
$ RENAMED_CELLS="cell1 cell2 cell3"
422-
$ oc get pod openstack-galera-0 -o jsonpath='{.status.phase}{"\n"}' | grep Running
423-
$ oc get pod rabbitmq-server-0 -o jsonpath='{.status.phase}{"\n"}' | grep Running
423+
$ oc get pod openstack-galera-0 -o jsonpath='{.status.phase}{"\n"}'
424+
$ oc get pod rabbitmq-server-0 -o jsonpath='{.status.phase}{"\n"}'
424425
$ for CELL in $(echo $RENAMED_CELLS); do
425-
oc get pod openstack-$CELL-galera-0 -o jsonpath='{.status.phase}{"\n"}' | grep Running
426-
oc get pod rabbitmq-$CELL-server-0 -o jsonpath='{.status.phase}{"\n"}' | grep Running
427-
done
426+
> oc get pod openstack-$CELL-galera-0 -o jsonpath='{.status.phase}{"\n"}'
427+
> oc get pod rabbitmq-$CELL-server-0 -o jsonpath='{.status.phase}{"\n"}'
428+
> done
428429
----
429430
+
430431
The given cells names are later referred to by using the environment variable `RENAMED_CELLS`.
431432

432-
* Verify that you can access the `OpenStackClient` pod. For more information, see link:{defaultURL}/maintaining_the_red_hat_openstack_services_on_openshift_deployment/assembly_accessing-the-rhoso-cloud#proc_accessing-the-OpenStackClient-pod_cloud-access-admin[Accessing the OpenStackClient pod] in _Maintaining the {rhos_long_noacro} deployment_.
433+
* Verify that the `OpenStackControlPlane` CR is waiting for deployment
434+
of the `openstackclient` pod:
435+
+
436+
----
437+
$ oc get OpenStackControlPlane openstack
438+
NAME STATUS MESSAGE
439+
openstack Unknown OpenStackControlPlane Client not started
440+
----

tests/roles/backend_services/tasks/main.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,14 @@
151151
-p='[{"op": "replace", "path": "/spec/rabbitmq/templates/rabbitmq-cell1/resources/requests/cpu", "value": 500m}]'
152152
oc patch ${crname} --type json \
153153
-p='[{"op": "replace", "path": "/spec/rabbitmq/templates/rabbitmq-cell1/resources/requests/memory", "value": 500Mi}]'
154+
155+
- name: Verify that OpenStackControlPlane is waiting for openstackclient
156+
ansible.builtin.shell: |
157+
{{ shell_header }}
158+
{{ oc_header }}
159+
160+
oc get openstackcontrolplane openstack -o jsonpath='{.status.conditions[?(@.type=="Ready")].message}{"\n"}' | grep 'OpenStackControlPlane Client not started'
161+
register: openstack_control_plane_cr_result
162+
until: openstack_control_plane_cr_result is success
163+
retries: 60
164+
delay: 2

tests/roles/keystone_adoption/tasks/main.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
retries: 60
5757
delay: 2
5858

59+
- name: verify that OpenStackControlPlane setup is complete
60+
ansible.builtin.shell: |
61+
{{ shell_header }}
62+
{{ oc_header }}
63+
oc wait --for=condition=Ready --timeout=1m OpenStackControlPlane openstack
64+
5965
- name: clean up services and endpoints
6066
ansible.builtin.shell: |
6167
{{ shell_header }}

0 commit comments

Comments
 (0)