Bug 740456

Summary: Cannot terminate instance after compute node reboot
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: openstack-novaAssignee: Mark McLoughlin <markmc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: alexander.sakhnov, asalkeld, higginsd, markmc, matt_domsch, mlvov
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: openstack-nova-2011.3.1-0.4.10818.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-19 22:02:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mark McLoughlin 2011-09-22 06:12:29 UTC
On Fedora we have a libvirt-guests service which saves running guests on shutdown

If I reboot a compute node, the guest gets saved and then I try and terminate it, I get:

(nova.exception): TRACE:   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 502, in terminate_instance
(nova.exception): TRACE:     self._shutdown_instance(context, instance_id, 'Terminating')
(nova.exception): TRACE:   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 493, in _shutdown_instance
(nova.exception): TRACE:     self.driver.destroy(instance, network_info)
(nova.exception): TRACE:   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/connection.py", line 293, in destroy
(nova.exception): TRACE:     virt_dom.undefine()
(nova.exception): TRACE:   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1197, in undefine
(nova.exception): TRACE:     if ret == -1: raise libvirtError ('virDomainUndefine() failed', dom=self)
(nova.exception): TRACE: libvirtError: Requested operation is not valid: Refusing to undefine while domain managed save image exists
(nova.exception): TRACE: 

If this happens, Nova could do a virDomainManagedSaveRemove()

For now, we can just recommend disabling libvirt-guests

Comment 1 Derek Higgins 2011-11-04 00:36:33 UTC
Related to this bug 

Comment 2 Mark McLoughlin 2011-11-04 06:12:12 UTC
Nice one Derek

Comment 3 Mark McLoughlin 2011-11-15 12:05:41 UTC
The fix was merged into master, will get it into stable branch soon

Comment 4 Mark McLoughlin 2012-01-16 13:14:38 UTC
Will be fixed in 2011.3.1

Comment 5 Fedora Update System 2012-01-18 00:29:18 UTC
openstack-nova-2011.3.1-0.4.10818.fc16 has been submitted as an update for Fedora 16.

Comment 6 Fedora Update System 2012-01-19 01:38:10 UTC
Package openstack-nova-2011.3.1-0.4.10818.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openstack-nova-2011.3.1-0.4.10818.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-01-19 22:02:12 UTC
openstack-nova-2011.3.1-0.4.10818.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.