Skip to content

Commit

Permalink
Add Ironic baremetal in a dedicated ci-bootstrap job
Browse files Browse the repository at this point in the history
- Add debugging playbook to manually fail job
- Add new node set locked to Vexxhost as currently ci-bootstrap won't
  work on IBM cloud
- Add new job to test Ironic

Co-authored-by: Pablo Rodríguez Nava <[email protected]>
Co-authored-by: Lewis Denny <[email protected]>
  • Loading branch information
3 people committed Oct 1, 2024
1 parent 2520f74 commit b82c420
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
-i {{ ansible_user_dir }}/ci-framework-data/artifacts/zuul_inventory.yml
-e @scenarios/centos-9/base.yml
-e "@{{ ansible_user_dir }}/ci-framework-data/artifacts/parameters/zuul-params.yml"
-e cifmw_networking_mapper_ifaces_info_path=/etc/ci/env/interfaces-info.yml
{% if nodepool is defined %}
-e "@{{ ansible_user_dir }}/ci-framework-data/artifacts/nodepool_params.yml"
{% endif %}
20 changes: 20 additions & 0 deletions ci/playbooks/edpm/fail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: "Fail"
hosts: "{{ cifmw_zuul_target_host | default('all') }}"
gather_facts: true
tasks:
- name: Filter out host if needed
when:
- cifmw_zuul_target_host is defined
- cifmw_zuul_target_host != 'all'
- inventory_hostname != cifmw_zuul_target_host
ansible.builtin.meta: end_host

- name: Remove the success flag to trigger the networks autohold mechanism
ansible.builtin.file:
path: "{{ ansible_user_dir }}/cifmw-success"
state: absent

- name: Fail
ansible.builtin.fail:
msg: "Debug failure"
3 changes: 3 additions & 0 deletions hooks/playbooks/fetch_compute_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
- name: Load parameters
ansible.builtin.include_vars:
dir: "{{ item }}"
ignore_unknown_extensions: true
extensions:
- 'yml'
loop:
- "{{ cifmw_basedir }}/artifacts/parameters"
- "/etc/ci/env"
Expand Down
6 changes: 4 additions & 2 deletions zuul.d/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
required-projects: *multinode_edpm_rp
roles: *multinode_edpm_roles
pre-run:
- ci/playbooks/bootstrap-networking-mapper.yml
- ci/playbooks/crc/reconfigure-kubelet.yml
- ci/playbooks/multinode-customizations.yml
post-run: *multinode_edpm_post_run
Expand All @@ -231,11 +232,12 @@
parent: base-extracted-crc-ci-bootstrap-staging
timeout: 10800
attempts: 1
nodeset: centos-9-medium-centos-9-crc-extracted-2-39-0-3xl
nodeset: centos-9-medium-centos-9-crc-extracted-2-39-0-3xl-vexxhost
irrelevant-files: *ir_files
required-projects: *multinode_edpm_rp
roles: *multinode_edpm_roles
pre-run:
- ci/playbooks/bootstrap-networking-mapper.yml
- ci/playbooks/crc/reconfigure-kubelet.yml
- ci/playbooks/multinode-customizations.yml
post-run: *multinode_edpm_post_run
Expand Down Expand Up @@ -305,4 +307,4 @@
pre-run:
- ci/playbooks/e2e-prepare.yml
- ci/playbooks/dump_zuul_data.yml
- ci/playbooks/pre-ci-bootstrap.yml
- ci/playbooks/bootstrap-networking-mapper.yml
109 changes: 45 additions & 64 deletions zuul.d/edpm_multinode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,64 +367,6 @@
# TODO: to be removed after removing its dependency in ci-bootstrap
crc_ci_bootstrap_networking: {}
vars: &edpm_bootstrap_vars
cifmw_networking_definition:
networks:
default:
network: "192.168.122.0/24"
gateway: "192.168.122.1"
mtu: 1500
internal-api:
network: "172.17.0.0/24"
gateway: "172.17.0.1"
vlan: 20
storage:
network: "172.18.0.0/24"
gateway: "172.18.0.1"
vlan: 21
tenant:
network: "172.19.0.0/24"
gateway: "172.19.0.1"
vlan: 22
instances:
controller:
networks:
default:
ip: "192.168.122.11"
crc:
networks:
default:
ip: "192.168.122.10"
internal-api:
ip: "172.17.0.5"
storage:
ip: "172.18.0.5"
tenant:
ip: "172.19.0.5"
compute-0:
skip-nm-configuration: true
networks:
default:
ip: "192.168.122.100"
internal-api:
ip: "172.17.0.100"
trunk_parent: default
storage:
ip: "172.18.0.100"
trunk_parent: default
tenant:
ip: "172.19.0.100"
trunk_parent: default
cifmw_extras:
- '@scenarios/centos-9/multinode-ci.yml'
run:
- ci/playbooks/edpm/run.yml

# Job with ci-bootstrap staging branch job - to be used to test ci-bootstrap
- job:
name: podified-multinode-edpm-deployment-crc-bootstrap-staging
parent: cifmw-podified-multinode-edpm-ci-bootstrap-staging
extra-vars: *edpm_bootstrap_extra_vars
vars:
cifmw_networking_definition:
networks:
default:
Expand Down Expand Up @@ -457,13 +399,13 @@
networks:
default: {}
internal-api:
trunk_parent: default
trunk-parent: default
skip-nm-configuration: true
tenant:
trunk_parent: default
trunk-parent: default
skip-nm-configuration: true
storage:
trunk_parent: default
trunk-parent: default
skip-nm-configuration: true
instances:
controller:
Expand All @@ -476,14 +418,53 @@
ip: "192.168.122.10"
internal-api:
ip: "172.17.0.5"
trunk_parent: default
trunk-parent: default
storage:
ip: "172.18.0.5"
trunk_parent: default
trunk-parent: default
tenant:
ip: "172.19.0.5"
trunk_parent: default
trunk-parent: default
cifmw_extras:
- '@scenarios/centos-9/multinode-ci.yml'
run:
- ci/playbooks/edpm/run.yml

# Job with ci-bootstrap staging branch job - to be used to test ci-bootstrap
- job:
name: podified-multinode-edpm-deployment-crc-bootstrap-staging
parent: cifmw-podified-multinode-edpm-ci-bootstrap-staging
extra-vars: *edpm_bootstrap_extra_vars
vars: *edpm_bootstrap_vars
run:
- ci/playbooks/edpm/run.yml

# TODO: Testing Ironic jobs definition
- job:
name: podified-multinode-edpm-deployment-crc-bootstrap-staging-ironic
parent: podified-multinode-edpm-deployment-crc-bootstrap-staging
vars:
cifmw_use_sushy_emulator: true
cifmw_use_libvirt_extracted: true
cifmw_networking_mapper_definition_patch_02_bmaas_net:
networks:
baremetal:
network: "172.20.1.0/24"
gateway: "172.20.1.1"
mtu: 1500
instances:
controller:
networks:
baremetal:
ip: "172.20.1.11"
skip-nm-configuration: true
crc:
networks:
baremetal:
ip: "172.20.1.5"
skip-nm-configuration: true
cifmw_extras:
- '@scenarios/centos-9/multinode-ci.yml'
run:
- ci/playbooks/edpm/run.yml
- ci/playbooks/edpm/fail.yml
17 changes: 17 additions & 0 deletions zuul.d/nodeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,23 @@
nodes:
- crc

- nodeset:
name: centos-9-medium-centos-9-crc-extracted-2-39-0-3xl-vexxhost
nodes:
- name: controller
label: cloud-centos-9-stream-tripleo-vexxhost-medium
- name: compute-0
label: cloud-centos-9-stream-tripleo-vexxhost
- name: crc
label: coreos-crc-extracted-2-39-0-3xl
groups:
- name: computes
nodes:
- compute-0
- name: ocps
nodes:
- crc

- nodeset:
name: centos-9-crc-2-39-0-6xlarge
nodes:
Expand Down

0 comments on commit b82c420

Please sign in to comment.