Skip to content

Commit

Permalink
[DNM] Enable ironic testing in component lines
Browse files Browse the repository at this point in the history
  • Loading branch information
pablintino committed Oct 14, 2024
1 parent b62a7c2 commit 7255293
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 112 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 %}
8 changes: 8 additions & 0 deletions ci/playbooks/edpm/fail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: "Run ci/playbooks/edpm/fail.yml"
hosts: "{{ cifmw_zuul_target_host | default('all') }}"
gather_facts: true
tasks:
- name: Fail
ansible.builtin.fail:
msg: "Debug failure"
14 changes: 7 additions & 7 deletions playbooks/02-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@
ansible.builtin.include_role:
name: cert_manager

- name: Configure hosts networking using nmstate
when:
- cifmw_config_nmstate is defined
- cifmw_config_nmstate | bool
ansible.builtin.include_role:
name: ci_nmstate

- name: Deploy Sushy Emulator and configure controller as hypervisor
when:
- cifmw_enable_virtual_baremetal_support | default(false) | bool
Expand All @@ -102,13 +109,6 @@
ansible.builtin.include_role:
name: libvirt_manager

- name: Configure hosts networking using nmstate
when:
- cifmw_config_nmstate is defined
- cifmw_config_nmstate | bool
ansible.builtin.include_role:
name: ci_nmstate

- name: Prepare container package builder
when:
- cifmw_pkg_build_list is defined
Expand Down
47 changes: 47 additions & 0 deletions zuul.d/edpm_multinode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,33 @@
parent: podified-multinode-edpm-deployment-crc-bootstrap-staging
vars:
cifmw_enable_virtual_baremetal_support: true
cifmw_config_nmstate: true
cifmw_ci_nmstate_instance_config:
controller:
interfaces:
- name: "{{ cifmw_networking_env_definition.instances['controller'].networks['baremetal'].interface_name }}"
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 }}"
stp-hairpin-mode: false
stp-path-cost: 100
stp-priority: 32
ipv4:
address:
- ip: "{{ cifmw_networking_env_definition.networks['baremetal'].network_v4 | ansible.utils.nthhost(11) }}"
prefix-length: 24
enabled: true
ipv6:
enabled: false
cifmw_networking_mapper_definition_patch_02_bmaas_net:
networks:
baremetal:
Expand All @@ -462,6 +489,26 @@
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
103 changes: 1 addition & 102 deletions zuul.d/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,105 +2,4 @@
github-check:
jobs:
- noop
- cifmw-pod-ansible-test
- cifmw-pod-k8s-snippets-source
- cifmw-pod-pre-commit
- cifmw-pod-zuul-files
- cifmw-content-provider-build-images
- cifmw-edpm-build-images
- cifmw-multinode-kuttl
- cifmw-tcib
- cifmw-architecture-validate-hci
- ci-framework-openstack-meta-content-provider
- build-push-container-cifmw-client
- cifmw-molecule-artifacts
- cifmw-molecule-build_containers
- cifmw-molecule-build_openstack_packages
- cifmw-molecule-build_push_container
- cifmw-molecule-cert_manager
- cifmw-molecule-ci_gen_kustomize_values
- cifmw-molecule-ci_local_storage
- cifmw-molecule-ci_lvms_storage
- cifmw-molecule-ci_metallb
- cifmw-molecule-ci_multus
- cifmw-molecule-ci_netconfig
- cifmw-molecule-ci_network
- cifmw-molecule-ci_nmstate
- cifmw-molecule-ci_setup
- cifmw-molecule-cifmw_block_device
- cifmw-molecule-cifmw_ceph_client
- cifmw-molecule-cifmw_ceph_spec
- cifmw-molecule-cifmw_cephadm
- cifmw-molecule-cifmw_create_admin
- cifmw-molecule-cifmw_external_dns
- cifmw-molecule-cifmw_ntp
- cifmw-molecule-cifmw_test_role
- cifmw-molecule-compliance
- cifmw-molecule-config_drive
- cifmw-molecule-copy_container
- cifmw-molecule-deploy_bmh
- cifmw-molecule-devscripts
- cifmw-molecule-discover_latest_image
- cifmw-molecule-dlrn_promote
- cifmw-molecule-dlrn_report
- cifmw-molecule-dnsmasq
- cifmw-molecule-edpm_build_images
- cifmw-molecule-edpm_deploy
- cifmw-molecule-edpm_deploy_baremetal
- cifmw-molecule-edpm_kustomize
- cifmw-molecule-edpm_prepare
- cifmw-molecule-env_op_images
- cifmw-molecule-hci_prepare
- cifmw-molecule-hive
- cifmw-molecule-idrac_configuration
- cifmw-molecule-install_ca
- cifmw-molecule-install_openstack_ca
- cifmw-molecule-install_yamls
- cifmw-molecule-kustomize_deploy
- cifmw-molecule-libvirt_manager
- cifmw-molecule-manage_secrets
- cifmw-molecule-mirror_registry
- cifmw-molecule-nat64_appliance
- cifmw-molecule-networking_mapper
- cifmw-molecule-openshift_adm
- cifmw-molecule-openshift_login
- cifmw-molecule-openshift_obs
- cifmw-molecule-openshift_provisioner_node
- cifmw-molecule-openshift_setup
- cifmw-molecule-operator_build
- cifmw-molecule-operator_deploy
- cifmw-molecule-os_must_gather
- cifmw-molecule-os_net_setup
- cifmw-molecule-ovirt
- cifmw-molecule-pkg_build
- cifmw-molecule-podman
- cifmw-molecule-polarion
- cifmw-molecule-registry_deploy
- cifmw-molecule-repo_setup
- cifmw-molecule-reportportal
- cifmw-molecule-reproducer
- cifmw-molecule-rhol_crc
- cifmw-molecule-run_hook
- cifmw-molecule-set_openstack_containers
- cifmw-molecule-shiftstack
- cifmw-molecule-ssh_jumper
- cifmw-molecule-sushy_emulator
- cifmw-molecule-switch_config
- cifmw-molecule-tempest
- cifmw-molecule-test_deps
- cifmw-molecule-test_operator
- cifmw-molecule-tofu
- cifmw-molecule-update
- cifmw-molecule-update_containers
- cifmw-molecule-validations
- cifmw-molecule-virtualbmc
github-experimental-trigger:
jobs:
- downstream-va-hci-trigger-job
github-post:
jobs:
- build-push-container-cifmw-client-post
name: openstack-k8s-operators/ci-framework
templates:
- podified-multinode-edpm-ci-framework-pipeline
- data-plane-adoption-ci-framework-pipeline
- podified-multinode-edpm-deployment-crc-bootstrap-staging-ironic

0 comments on commit 7255293

Please sign in to comment.