Skip to content

Commit

Permalink
Enable ironic testing in component lines
Browse files Browse the repository at this point in the history
Update podified-multinode-edpm-deployment-crc-bootstrap-staging-ironic
to configure networking to test Ironic.
  • Loading branch information
lewisdenny authored and openshift-merge-bot[bot] committed Nov 6, 2024
1 parent 3ca9410 commit 743af33
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 10 deletions.
3 changes: 0 additions & 3 deletions ci/playbooks/bootstrap-networking-mapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@
-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 %}
1 change: 1 addition & 0 deletions docs/source/usage/01_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ are shared among multiple roles:
- `cifmw_set_openstack_containers`: (Bool) Run set_openstack_containers role during deployment to update openstack containers. Defaults to `false`.
- `cifmw_sushy_redfish_bmc_protocol`: (String) The RedFish BMC protocol you would like to use with Sushy Emulator, options are `redfish` or `redfish-virtualmedia`. Defaults to `redfish-virtualmedia`
- `cifmw_config_nmstate`: (Bool) toggle NMstate networking deployment. Default to false.
- `cifmw_config_multus`: (Bool) toggle Multus networking deployment. Default to false.
- `cifmw_config_bmh`: (Bool) toggle Metal3 BareMetalHost CRs deployment. Default to false.
- `cifmw_config_certmanager`: (Bool) toggle cert-manager deployment. Default to false.
- `cifmw_skip_os_net_setup`: (bool) Specifies whether os_net_setup should be executed. Default to false.
Expand Down
6 changes: 6 additions & 0 deletions playbooks/02-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@
ansible.builtin.include_role:
name: ci_nmstate

- name: Configure multus networks
when:
- cifmw_config_multus | default(false) | bool
ansible.builtin.include_role:
name: ci_multus

- name: Deploy Sushy Emulator and configure controller as hypervisor
when:
- cifmw_enable_virtual_baremetal_support | default(false) | bool
Expand Down
63 changes: 56 additions & 7 deletions zuul.d/edpm_multinode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,12 @@
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
routers:
ci-router:
Expand Down Expand Up @@ -419,12 +416,15 @@
internal-api:
ip: "172.17.0.5"
trunk-parent: default
skip-nm-configuration: true
storage:
ip: "172.18.0.5"
trunk-parent: default
skip-nm-configuration: true
tenant:
ip: "172.19.0.5"
trunk-parent: default
skip-nm-configuration: true
cifmw_extras:
- '@scenarios/centos-9/multinode-ci.yml'
run:
Expand All @@ -445,23 +445,72 @@
parent: podified-multinode-edpm-deployment-crc-bootstrap-staging
vars:
cifmw_enable_virtual_baremetal_support: true
cifmw_config_nmstate: true
cifmw_config_multus: true
cifmw_ci_nmstate_instance_config:
controller:
interfaces:
- name: "{{ cifmw_networking_env_definition.instances['controller'].networks['baremetal'].interface_name | default(omit) }}"
type: ethernet
state: up
- name: baremetal
type: linux-bridge
state: up
bridge:
options:
stp:
enabled: false
port:
- name: "{{ cifmw_networking_env_definition.instances['controller'].networks['baremetal'].interface_name | default(omit) }}"
stp-hairpin-mode: false
stp-path-cost: 100
stp-priority: 32
ipv4:
address:
- ip: "{{ cifmw_networking_mapper_definition_patch_02_bmaas_net.instances.controller.networks.baremetal.ip }}"
prefix-length: 24
enabled: true
ipv6:
enabled: false
cifmw_install_yamls_vars_patch_01_ironic_ci_base:
INSTALL_NMSTATE: false
cifmw_networking_mapper_definition_patch_02_bmaas_net:
networks:
baremetal:
network: "172.20.1.0/24"
gateway: "172.20.1.1"
mtu: 1500
tools:
multus:
ranges:
- start: 30
end: 70
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_libvirt_manager_configuration:
vms:
compute:
uefi: true
amount: 2
root_part_id: 4
disk_file_name: "blank"
disksize: 30
memory: 4
cpus: 4
nets:
- baremetal
networks:
baremetal: |
<network>
<name>baremetal</name>
<forward mode='bridge' />
<bridge name='baremetal' />
</network>
run:
- ci/playbooks/edpm/run.yml
- ci/playbooks/edpm/fail.yml

0 comments on commit 743af33

Please sign in to comment.