Skip to content

Commit a8936e1

Browse files
committed
Add 3-nodes job - experimental trigger
Also add AI generated documentation to stages in: test-operator/automation-vars.yml Assisted-By: calude-4-sonnet
1 parent 25d67b4 commit a8936e1

3 files changed

Lines changed: 96 additions & 0 deletions

File tree

scenarios/3-nodes/test-operator/automation-vars.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
stages:
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

zuul.d/jobs.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,67 @@
6767
- ci/playbooks/run-tests.yml
6868
files:
6969
- ^scenarios/sno-2-bm/.*
70+
71+
- job:
72+
name: vexxhost-hotstack-3-nodes
73+
parent: base-hotstack
74+
nodeset: hotstack-image-vexxhost
75+
description: |
76+
Hotstack scenario: 3-nodes
77+
timeout: 10800
78+
attempts: 1
79+
vars:
80+
cloud_name: vexxhost
81+
scenario: 3-nodes
82+
scenario_dir: >-
83+
{{
84+
[
85+
ansible_user_dir,
86+
zuul.projects['github.com/openstack-k8s-operators/hotstack'].src_dir,
87+
'scenarios'
88+
] | ansible.builtin.path_join
89+
}}
90+
hotstack_overrides:
91+
stack_parameters:
92+
dns_servers:
93+
- 199.204.44.24
94+
- 199.204.47.54
95+
ntp_servers: []
96+
router_external_network: public
97+
floating_ip_network: public
98+
controller_params:
99+
image: hotstack-controller
100+
# vpu: 1 ram 2GB disk: 20GB
101+
flavor: ci.m1.small
102+
ocp_master_params:
103+
image: ipxe-boot-usb
104+
# vpu: 16 ram 48GB disk: 200GB
105+
flavor: 16vcpu_48GB
106+
ocp_worker_params:
107+
image: ipxe-boot-usb
108+
# vpu: 12 ram 32GB disk: 200GB
109+
flavor: 12vcpu_32GB
110+
compute_params:
111+
image: cs9stream-genericcloud
112+
# vpu: 2 ram 4GB disk: 40GB
113+
flavor: ci.m1.medium
114+
networker_params:
115+
image: cs9stream-genericcloud
116+
# vpu: 2 ram 4GB disk: 40GB
117+
flavor: ci.m1.medium
118+
bmh_params:
119+
image: sushy-tools-blank-image
120+
cd_image: sushy-tools-blank-image
121+
# vpu: 2 ram 4GB disk: 40GB
122+
flavor: ci.m1.medium
123+
ironic_params:
124+
image: sushy-tools-blank-image
125+
cd_image: sushy-tools-blank-image
126+
# vpu: 1 ram 2GB disk: 20GB
127+
flavor: ci.m1.small
128+
run:
129+
- ci/playbooks/run-deploy.yml
130+
- ci/playbooks/run-tests.yml
131+
files:
132+
- ^scenarios/3-nodes/.*
70133
- ^roles/.*

zuul.d/projects.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
github-experimental-trigger:
1111
jobs:
1212
- vexxhost-hotstack-sno-2-bm
13+
- vexxhost-hotstack-3-nodes

0 commit comments

Comments
 (0)