11---
22stages :
33 - name : Set a multiattach volume type and create it if needed
4+ documentation : >-
5+ Creates and configures a multiattach volume type in OpenStack that allows
6+ volumes to be attached to multiple instances simultaneously. This is essential
7+ for shared storage scenarios and high-availability configurations.
48 shell : |
59 set -xe -o pipefail
610 oc project openstack
@@ -11,6 +15,10 @@ stages:
1115 oc rsh openstackclient openstack volume type set --property multiattach="<is> True" multiattach
1216
1317 - name : Create public network if needed
18+ documentation : >-
19+ Creates an external public network that provides connectivity to the outside world.
20+ This network uses a flat provider network type mapped to the 'datacentre' physical
21+ network and serves as the gateway for floating IP assignments.
1422 shell : |
1523 set -xe -o pipefail
1624 oc project openstack
@@ -24,6 +32,10 @@ stages:
2432 --provider-physical-network datacentre
2533
2634 - name : Create subnet on public network if needed
35+ documentation : >-
36+ Creates a subnet on the public network with a specific IP range (192.168.122.0/24)
37+ and allocation pool. This subnet provides DHCP services and defines the gateway
38+ for external connectivity. The allocation pool reserves IPs 171-250 for floating IPs.
2739 shell : |
2840 set -xe -o pipefail
2941 oc project openstack
@@ -37,6 +49,10 @@ stages:
3749 --dhcp
3850
3951 - name : Create private network if needed
52+ documentation : >-
53+ Creates a shared private network for internal communication between OpenStack instances.
54+ This network is shared across tenants and provides isolated internal connectivity
55+ separate from the external public network.
4056 shell : |
4157 set -xe -o pipefail
4258 oc project openstack
@@ -45,6 +61,10 @@ stages:
4561 oc rsh openstackclient openstack network create private --share
4662
4763 - name : Create subnet on private network if needed
64+ documentation : >-
65+ Creates a subnet on the private network with IP range 10.2.0.0/24 for internal
66+ instance communication. This subnet includes DHCP services and allocates IPs
67+ from 10.2.0.10 to 10.2.0.250 for instance assignments.
4868 shell : |
4969 set -xe -o pipefail
5070 oc project openstack
@@ -58,4 +78,16 @@ stages:
5878 --dhcp
5979
6080 - name : Run tempest
81+ documentation : >-
82+ Executes comprehensive OpenStack validation tests using the Tempest framework.
6183 manifest : tempest-tests.yml
84+ wait_conditions :
85+ - >-
86+ oc wait -n openstack tempests.test.openstack.org tempest-tests
87+ --for condition=ServiceConfigReady --timeout=120s
88+ - >-
89+ oc wait -n openstack pod
90+ -l operator=test-operator
91+ -l service=tempest
92+ -l workflowStep=0
93+ --for jsonpath='{.status.phase}'=Succeeded --timeout=60m
0 commit comments