From a3dad9cf6489daf783c9ec5dbd7a1fcdcc9bd9aa Mon Sep 17 00:00:00 2001 From: Yatin Karel Date: Mon, 15 Dec 2025 20:03:23 +0530 Subject: [PATCH] [2024.1] Enable customize in tobiko-neutron job [1] updated default image config to use already customized image, but since 2024.1 we have image overrides we need to add customize params. [1] https://review.opendev.org/c/x/tobiko/+/967361 Closes-Bug: #2136143 Change-Id: Ie4f6a2d321fd7f4798a5580610874c01138d39f4 --- zuul.d/devstack-tobiko-neutron.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/zuul.d/devstack-tobiko-neutron.yaml b/zuul.d/devstack-tobiko-neutron.yaml index dc280a2..a853d3a 100644 --- a/zuul.d/devstack-tobiko-neutron.yaml +++ b/zuul.d/devstack-tobiko-neutron.yaml @@ -53,6 +53,25 @@ download_images_override: advanced_vm: url: "https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/40/Cloud/x86_64/images/Fedora-Cloud-Base-Generic.x86_64-40-1.14.qcow2" + customized: false + copy_in_files: + - nginx_id.conf + - iperf3-server.service + - config + # vlan101 is created on top of both eth0 and ens3 because depending on the computes OS, VM interface name changes + # nmcli will create two connections with same name and different UUIDs and only one of them will become active: the one that finds an existing parent NIC + customize_command_pattern: > + LIBGUESTFS_BACKEND=direct virt-customize -a $TMPPATH + --copy-in /tmp/config:/etc/selinux + --firstboot-command 'sh -c "nmcli connection add type vlan con-name vlan101 ifname vlan101 vlan.parent eth0 vlan.id 101 ipv6.addr-gen-mode default-or-eui64; + nmcli connection add type vlan con-name vlan101 ifname vlan101 vlan.parent ens3 vlan.id 101 ipv6.addr-gen-mode default-or-eui64"' + --install iperf3,iputils,nmap,nmap-ncat,nginx + --copy-in /tmp/nginx_id.conf:/etc/nginx/conf.d + --run-command 'systemctl enable nginx' + --copy-in /tmp/iperf3-server.service:/etc/systemd/system + --run-command 'systemctl enable iperf3-server' + --root-password password:tobiko + --selinux-relabel irrelevant-files: *FAULTS_IRRELEVANT_FILES - job: