From c60cfea5a684f3d2a32de001e1557613b0b2270f Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 20 Jul 2023 11:14:16 -0400 Subject: [PATCH] ansible: Remove uuid set for ci-rootnode-deb12-i386-01-01 When the UUID is set, each time ansible is run the community.libvirt.virt task will run and attempt to update the XML definition of the virtual machine. However, each time this happens the MAC address is changed. This causes the VM to no longer get the expected IP address via DHCP. If a new release of community.libvirt.virt sees the light of day, the mutate option to keep the MAC address for interfaces could be tested to see if it solves the problem we're seeing. C.f https://github.com/ansible-collections/community.libvirt/commit/c4fe15801de0a1b61456acc8d2a5a704b0fe6ea5 For the moment, no changes to the XML template or settings are expected for the VM, so removing the UUID is the simplest way to avoid this issue. Change-Id: I290999111da0eb29ccc856e55cd348da35e48df2 --- automation/ansible/host_vars/cloud01.internal.efficios.com.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/automation/ansible/host_vars/cloud01.internal.efficios.com.yml b/automation/ansible/host_vars/cloud01.internal.efficios.com.yml index a948203..f7067af 100644 --- a/automation/ansible/host_vars/cloud01.internal.efficios.com.yml +++ b/automation/ansible/host_vars/cloud01.internal.efficios.com.yml @@ -2,6 +2,5 @@ vms: - vars: name: 'ci-rootnode-deb12-i386-01-01' - uuid: '061197e7-0107-425c-a449-755a7fab2fe8' disk: '/var/lib/libvirt/images/ci-rootnode-deb12-i386-01-01.qcow' cdrom: '/var/lib/libvirt/images/debian-12.0.0-i386-netinst.iso' -- 2.34.1