Comment 9 for bug 1044090

Revision history for this message
David Kang (dkang) wrote : Re: [Bug 1044090] Re: cleaning up an LXC instance fails

 Sure.
I've done that.

 Thanks,
 David

----- Original Message -----
> @David, please put comment 7 as a new bug while mentioning the version
> of nova you're using.
>
> thanks!
>
> --
> You received this bug notification because you are subscribed to the
> bug
> report.
> https://bugs.launchpad.net/bugs/1044090
>
> Title:
> cleaning up an LXC instance fails
>
> Status in OpenStack Compute (Nova):
> In Progress
>
> Bug description:
> Termination an LXC instance is done successfully, but it fails in
> cleanup.
>
> using libvirt 0.9.13.
>
> In the log:
> 2012-08-30 13:35:11 INFO nova.virt.libvirt.driver [-] [instance:
> cde9e8e0-621b-440a-969b-2a787adac731] Instance destroyed successfully.
> 2012-08-30 13:35:11 ERROR nova.virt.libvirt.driver
> [req-381cac99-426a-44c0-83a7-e18060973cdb admin admin] [instance:
> cde9e8e0-621b-440a-969b-2a787adac731] Error from libvirt during saved
> instance removal. Code=3 Error=this function is not supported by the
> connection driver: virDomainHasManagedSaveImage
>
> I think it fails at line 488 in the following code:
>
> nova/virt/libvirt/driver.py
> 479 def _cleanup(self, instance, network_info, block_device_info):
> 480 try:
> 481 virt_dom = self._lookup_by_name(instance['name'])
> 482 except exception.NotFound:
> 483 virt_dom = None
> 484 if virt_dom:
> 485 try:
> 486 # NOTE(derekh): we can switch to undefineFlags and
> 487 # VIR_DOMAIN_UNDEFINE_MANAGED_SAVE once we require 0.9.4
> 488 if virt_dom.hasManagedSaveImage(0):
> 489 virt_dom.managedSaveRemove(0)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1044090/+subscriptions