[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
This commit is contained in:
2025-12-15 20:03:23 +05:30
parent e4743d8711
commit a3dad9cf64

View File

@@ -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: