[Bug 1567807] Re: nova delete doesn't work with EFI booted VMs
Victor Morales
victor.morales at intel.com
Tue Apr 12 14:07:51 UTC 2016
My understanding is that using the VIR_DOMAIN_UNDEFINE_NVRAM flag[1] you
are passing the --nvram argument and according to the documentation for
undefine method this argument[2] is used for remove the nvram file. I
still need to check the process to create VMs, especially when it uses
uefi and checks if that a copy of nvram is created for every new
instance. So, my question is if once that this change is applied is
possible to create a new instance?
[1] https://github.com/libvirt/libvirt/blob/d9a0a885e2b1cf3c9fc5260f9cdf4fc8a768f26c/tools/virsh-domain.c#L3681-L3682
[2] https://github.com/libvirt/libvirt/blob/d9a0a885e2b1cf3c9fc5260f9cdf4fc8a768f26c/tools/virsh-domain.c#L3605
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1567807
Title:
nova delete doesn't work with EFI booted VMs
Status in OpenStack Compute (nova):
Triaged
Status in nova package in Ubuntu:
Confirmed
Bug description:
I've been setting up a Mitaka Openstack using the cloud archive
running on Trusty, and am having problems working with EFI enabled
instances on ARM64.
I've done some work with wgrant and gotten things to a stage where I
can boot instances, using the aavmf images.
However, when I tried to delete a VM booted like this, I get an error:
libvirtError: Requested operation is not valid: cannot delete
inactive domain with nvram
I've included the full traceback at
https://paste.ubuntu.com/15682718/.
Thanks to a suggestion from wgrant again, I got it working by editing nova/virt/libvirt/guest.py in delete_configuration() and replacing self._domain.undefineFlags(libvirt.VIR_DOMAIN_UNDEFINE_MANAGED_SAVE) with self._domain.undefineFlags(libvirt.VIR_DOMAIN_UNDEFINE_MANAGED_SAVE | libvirt.VIR_DOMAIN_UNDEFINE_NVRAM).
I've attached a rough patch.
Once that's applied and nova-compute restarted, I was able to delete
the instance fine.
Could someone please investigate this and see if its the correct fix,
and look at getting it fixed in the archive?
This was done on a updated trusty deployment using the cloud-archives
for mitaka.
$ dpkg-query -W python-nova
python-nova 2:13.0.0~b2-0ubuntu1~cloud0
Please let me know if you need any further information.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1567807/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list