virt module is not able to undefine a domain with defined nvram file #43915
Labels
affects_2.6
This issue/PR affects Ansible v2.6
bot_closed
bug
This issue/PR relates to a bug.
cloud
collection:community.libvirt
collection
Related to Ansible Collections work
module
This issue/PR relates to a module.
needs_collection_redirect
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md
support:community
This issue/PR relates to code supported by the Ansible community.
traceback
This issue/PR includes a traceback.
virt
Virt community (incl. QEMU, KVM, libvirt, ovirt, RHV and Proxmox)
SUMMARY
Virt module is not able to undefine a domain with defined nvram file.
ISSUE TYPE
COMPONENT NAME
virt
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
domain "example-vm-nvram" is undefined
ACTUAL RESULTS
The libvirt function
undefine
is not able to remove a domain with nvram, by usingundefineFlags
it is possible to control the deletion of the nvram file. See:https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainUndefine
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainUndefineFlags
With the following command the undefine action is possible.
The text was updated successfully, but these errors were encountered: