Skip to content

Commit c044186

Browse files
committed
DNM Checking CRC Cloud with image based on OCP 4.16 rc4
This is early test PR that uses new way for deploying the CRC - crc-cloud [1] and image that is base on OCP 4.16 rc4 with small modifications [2]. In the future, that image would be created by the nodepool-builder, but right now it is just a PoC (Proof of concept). Also is worth to mention, that the base job includes few workarounds until the PR in the official projects are not merged [3][4][5] [1] https://github.com/crc-org/crc-cloud [2] https://softwarefactory-project.io/r/c/software-factory/sf-infra/+/31853 [3] crc-org/crc-cloud#188 [4] crc-org/crc-cloud#189 [5] crc-org/crc-cloud#190
1 parent 7498441 commit c044186

6 files changed

+222
-3
lines changed

ci/playbooks/collect-logs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@
119119
cp /etc/containers/registries.conf {{ ansible_user_dir }}/zuul-output/logs/
120120
cp -r /etc/containers/registries.conf.d {{ ansible_user_dir }}/zuul-output/logs/
121121
chown -R "{{ ansible_user }}" {{ ansible_user_dir }}/zuul-output/logs/registries.conf.d
122+
cp -r {{ ansible_user_dir }}/workdir/*log {{ ansible_user_dir }}/zuul-output/logs/crc-cloud/
123+
chown -R "{{ ansible_user }}" {{ ansible_user_dir }}/zuul-output/logs/crc-cloud/
122124
123125
- name: Copy generated documentation if available
124126
when:

zuul.d/base.yaml

+101
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,92 @@
147147
- ci/playbooks/collect-logs.yml
148148
- ci/playbooks/multinode-autohold.yml
149149
vars: &multinode_edpm_vars
150+
wait_for_mcp: true
151+
zuul_log_collection: true
152+
registry_login_enabled: true
153+
push_registry: quay.rdoproject.org
154+
quay_login_secret_name: quay_nextgen_zuulgithubci
155+
cifmw_artifacts_crc_sshkey: "~/.ssh/id_cifw"
156+
cifmw_openshift_user: kubeadmin
157+
cifmw_openshift_password: "123456789"
158+
cifmw_openshift_api: api.crc.testing:6443
159+
cifmw_openshift_kubeconfig: "{{ ansible_user_dir }}/.crc/machines/crc/kubeconfig"
160+
cifmw_openshift_skip_tls_verify: true
161+
cifmw_use_libvirt: false
162+
cifmw_zuul_target_host: controller
163+
crc_ci_bootstrap_cloud_name: "{{ nodepool.cloud | replace('-nodepool-tripleo','') }}"
164+
crc_ci_bootstrap_networking:
165+
networks:
166+
default:
167+
mtu: "{{ ('ibm' in nodepool.cloud) | ternary('1440', '1500') }}"
168+
router_net: "{{ ('ibm' in nodepool.cloud) | ternary('hostonly', 'public') }}"
169+
range: 192.168.122.0/24
170+
internal-api:
171+
vlan: 20
172+
range: 172.17.0.0/24
173+
storage:
174+
vlan: 21
175+
range: 172.18.0.0/24
176+
tenant:
177+
vlan: 22
178+
range: 172.19.0.0/24
179+
instances:
180+
controller:
181+
networks:
182+
default:
183+
ip: 192.168.122.11
184+
crc:
185+
networks:
186+
default:
187+
ip: 192.168.122.10
188+
internal-api:
189+
ip: 172.17.0.5
190+
storage:
191+
ip: 172.18.0.5
192+
tenant:
193+
ip: 172.19.0.5
194+
compute-0:
195+
networks:
196+
default:
197+
ip: 192.168.122.100
198+
internal-api:
199+
ip: 172.17.0.100
200+
config_nm: false
201+
storage:
202+
ip: 172.18.0.100
203+
config_nm: false
204+
tenant:
205+
ip: 172.19.0.100
206+
config_nm: false
207+
208+
- job:
209+
name: cifmw-podified-multinode-edpm-base-crc-cloud
210+
parent: base-crc-cloud
211+
timeout: 10800
212+
attempts: 1
213+
nodeset: centos-9-medium-centos-9-crc-extracted-2-39-0-3xl
214+
irrelevant-files: *ir_files
215+
required-projects: &multinode_edpm_rp
216+
- openstack-k8s-operators/ci-framework
217+
- openstack-k8s-operators/install_yamls
218+
- openstack-k8s-operators/infra-operator
219+
- openstack-k8s-operators/openstack-baremetal-operator
220+
- openstack-k8s-operators/openstack-must-gather
221+
- openstack-k8s-operators/openstack-operator
222+
- openstack-k8s-operators/repo-setup
223+
- openstack-k8s-operators/edpm-ansible
224+
roles: &multinode_edpm_roles
225+
- zuul: github.com/openstack-k8s-operators/ci-framework
226+
pre-run: &multinode_edpm_pre_run
227+
- ci/playbooks/multinode-customizations.yml
228+
- ci/playbooks/e2e-prepare.yml
229+
- ci/playbooks/dump_zuul_data.yml
230+
post-run: &multinode_edpm_post_run
231+
- ci/playbooks/e2e-collect-logs.yml
232+
- ci/playbooks/collect-logs.yml
233+
- ci/playbooks/multinode-autohold.yml
234+
vars: &multinode_edpm_vars
235+
wait_for_mcp: true
150236
zuul_log_collection: true
151237
registry_login_enabled: true
152238
push_registry: quay.rdoproject.org
@@ -306,3 +392,18 @@
306392
- ci/playbooks/e2e-prepare.yml
307393
- ci/playbooks/dump_zuul_data.yml
308394
- ci/playbooks/pre-ci-bootstrap.yml
395+
396+
- job:
397+
name: cifmw-podified-multinode-edpm-base-crc-cloud
398+
parent: base-crc-cloud
399+
timeout: 10800
400+
attempts: 1
401+
nodeset: centos-9-medium-centos-9-crc-cloud-ocp-4-16-3xl
402+
irrelevant-files: *ir_files
403+
required-projects: *multinode_edpm_rp
404+
roles: *multinode_edpm_roles
405+
pre-run: *multinode_edpm_pre_run
406+
post-run: *multinode_edpm_post_run
407+
vars:
408+
<<: *multinode_edpm_vars
409+
wait_for_mcp: true

zuul.d/edpm_multinode.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
- job:
145145
name: podified-multinode-hci-deployment-crc-3comp
146146
parent: podified-multinode-edpm-deployment-crc
147-
nodeset: centos-9-medium-3x-centos-9-crc-extracted-2-39-0-xxl
147+
nodeset: centos-9-medium-3x-centos-9-crc-cloud-ocp-4-16-xxl
148148
vars:
149149
cifmw_edpm_deploy_hci: true
150150
crc_ci_bootstrap_cloud_name: "{{ nodepool.cloud | replace('-nodepool-tripleo','') }}"
@@ -312,7 +312,10 @@
312312

313313
- job:
314314
name: podified-multinode-edpm-deployment-crc
315-
parent: cifmw-podified-multinode-edpm-base-crc
315+
parent: base-crc-cloud
316+
timeout: 10800
317+
attempts: 1
318+
nodeset: centos-9-medium-centos-9-crc-cloud-ocp-4-16-3xl
316319
vars:
317320
cifmw_extras:
318321
- '@scenarios/centos-9/multinode-ci.yml'

zuul.d/kuttl_multinode.yaml

+73-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,79 @@
5151

5252
- job:
5353
name: cifmw-multinode-kuttl
54-
parent: cifmw-base-multinode-kuttl
54+
parent: cifmw-base-multinode-kuttl-crc-cloud
55+
files:
56+
- ^ci/playbooks/kuttl/.*
57+
- ^scenarios/centos-9/kuttl.yml
58+
- ^zuul.d/kuttl.yaml
59+
vars:
60+
cifmw_extras:
61+
- '@scenarios/centos-9/kuttl_multinode.yml'
62+
cifmw_kuttl_tests_operator_list:
63+
- openstack
64+
- barbican
65+
- keystone
66+
- horizon
67+
commands_before_kuttl_run:
68+
- oc get pv
69+
- oc get all
70+
commands_after_kuttl_run:
71+
- oc get pv
72+
- oc get all
73+
74+
- job:
75+
name: cifmw-base-multinode-kuttl-crc-cloud
76+
parent: cifmw-podified-multinode-edpm-base-crc-cloud
77+
timeout: 7200
78+
abstract: true
79+
nodeset: centos-9-medium-centos-9-crc-cloud-ocp-4-16-3xl
80+
vars:
81+
zuul_log_collection: true
82+
extra-vars:
83+
crc_ci_bootstrap_cloud_name: "{{ nodepool.cloud | replace('-nodepool-tripleo','') }}"
84+
crc_ci_bootstrap_networking:
85+
networks:
86+
default:
87+
range: 192.168.122.0/24
88+
mtu: "{{ ('ibm' in nodepool.cloud) | ternary('1440', '1500') }}"
89+
router_net: "{{ ('ibm' in nodepool.cloud) | ternary('hostonly', 'public') }}"
90+
internal-api:
91+
vlan: 20
92+
range: 172.17.0.0/24
93+
storage:
94+
vlan: 21
95+
range: 172.18.0.0/24
96+
tenant:
97+
vlan: 22
98+
range: 172.19.0.0/24
99+
instances:
100+
controller:
101+
networks:
102+
default:
103+
ip: 192.168.122.11
104+
crc:
105+
networks:
106+
default:
107+
ip: 192.168.122.10
108+
internal-api:
109+
ip: 172.17.0.5
110+
storage:
111+
ip: 172.18.0.5
112+
tenant:
113+
ip: 172.19.0.5
114+
pre-run:
115+
- ci/playbooks/e2e-prepare.yml
116+
run:
117+
- ci/playbooks/dump_zuul_data.yml
118+
- ci/playbooks/kuttl/run.yml
119+
post-run:
120+
- ci/playbooks/collect-logs.yml
121+
required-projects:
122+
- github.com/openstack-k8s-operators/install_yamls
123+
124+
- job:
125+
name: cifmw-multinode-kuttl
126+
parent: cifmw-base-multinode-kuttl-crc-cloud
55127
files:
56128
- ^ci/playbooks/kuttl/.*
57129
- ^scenarios/centos-9/kuttl.yml

zuul.d/nodeset.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -279,3 +279,43 @@
279279
nodes:
280280
- name: controller
281281
label: centos-9-stream-crc-2-39-0-xl
282+
283+
- nodeset:
284+
name: centos-9-medium-centos-9-crc-cloud-ocp-4-16-3xl
285+
nodes:
286+
- name: controller
287+
label: cloud-centos-9-stream-tripleo-medium
288+
- name: compute-0
289+
label: cloud-centos-9-stream-tripleo
290+
- name: crc
291+
label: crc-cloud-ocp-4-16-0-3xl
292+
groups:
293+
- name: computes
294+
nodes:
295+
- compute-0
296+
- name: ocps
297+
nodes:
298+
- crc
299+
300+
- nodeset:
301+
name: centos-9-medium-3x-centos-9-crc-cloud-ocp-4-16-xxl
302+
nodes:
303+
- name: controller
304+
label: cloud-centos-9-stream-tripleo-medium
305+
- name: compute-0
306+
label: cloud-centos-9-stream-tripleo
307+
- name: compute-1
308+
label: cloud-centos-9-stream-tripleo
309+
- name: compute-2
310+
label: cloud-centos-9-stream-tripleo
311+
- name: crc
312+
label: crc-cloud-ocp-4-16-0-3xl
313+
groups:
314+
- name: computes
315+
nodes:
316+
- compute-0
317+
- compute-1
318+
- compute-2
319+
- name: ocps
320+
nodes:
321+
- crc

zuul.d/tempest_multinode.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
- job:
118118
name: cifmw-multinode-tempest
119119
parent: podified-multinode-edpm-deployment-crc-tempest
120+
nodeset: centos-9-medium-centos-9-crc-cloud-ocp-4-16-3xl
120121
files:
121122
- ^roles/test_operator
122123
- ^scenarios/centos-9/multinode-ci.yml

0 commit comments

Comments
 (0)