Satellite 6 failed to recreate a compute Libvirt instance with a "storage volume 'instance-disk' exists already" error message
Issue
-
Satellite has a Libvirt type
Compute Resource
configured for provisioning virtual machines. When a newHost
is created in the Libvirt infrastructure using Satellite provisioning (Create Host
option) and then it is deleted directly into the Libvirt environment without deleting the virtual machine's disk, an error message similar to the following is shown in Satellite when trying to recreate the same virtual machine using the same hostname:Failed to create a compute KVM-LOCAL (Libvirt) instance hostname.example.com: Call to virStorageVolCreateXML failed: storage volume 'hostname.example.com-disk1' exists already
-
The virtual machine was delete first in the Libvirt/QEMU-KVM host (either with CLI command or through GUI) without deleting the disk and then the disk itself was deleted manually.
-
It was confirmed that the virtual machine's disk does not exists anymore in the Libvirt/QEMU-KVM host's storage pool after being deleted manually. Still, Satellite is complaining that the disk exists.
Environment
- Red Hat Satellite
- 16.x
- Red Hat Enterprise Linux (RHEL)
- 8.x
- 9.x
- Libvirt (libvirtd)
- 8.x
- QEMU-KVM
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.