ansible: Remove uuid set for ci-rootnode-deb12-i386-01-01
authorKienan Stewart <kstewart@efficios.com>
Thu, 20 Jul 2023 15:14:16 +0000 (11:14 -0400)
committerKienan Stewart <kstewart@efficios.com>
Thu, 3 Aug 2023 14:43:34 +0000 (10:43 -0400)
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

index a948203dbb3a195c92a8a25c60e7b5b5c30d237e..f7067afb8315ca3863483e6d75abffc9db4ae3f2 100644 (file)
@@ -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'
This page took 0.023839 seconds and 4 git commands to generate.