OpenStack Compute (Nova)

Server create and immediate delete fails on libvirt

Reported by Brian Waldon on 2011-11-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Low
Brian Waldon

Bug Description

If I try to boot an instance w/ the libvirt driver, and immediately try to delete it (server still in 'BUILD' state), the following traceback is produced and the instance is not deleted:

2011-11-01 18:44:45,847 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/rpc/impl_kombu.py", line 620, in _process_data
(nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/exception.py", line 113, in wrapped
(nova.rpc): TRACE: return f(*args, **kw)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 120, in decorated_function
(nova.rpc): TRACE: function(self, context, instance_id, *args, **kwargs)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 569, in terminate_instance
(nova.rpc): TRACE: self._delete_instance(context, instance_id)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 546, in _delete_instance
(nova.rpc): TRACE: self._shutdown_instance(context, instance_id, 'Terminating', True)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 532, in _shutdown_instance
(nova.rpc): TRACE: self.driver.destroy(instance, network_info, block_device_info, cleanup)
(nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/libvirt/connection.py", line 311, in destroy
(nova.rpc): TRACE: virt_dom.undefine()
(nova.rpc): TRACE: AttributeError: 'NoneType' object has no attribute 'undefine'
(nova.rpc): TRACE:

Brian Waldon (bcwaldon) on 2011-11-02
Changed in nova:
milestone: none → essex-1
importance: Undecided → Low

Reviewed: https://review.openstack.org/1236
Committed: http://github.com/openstack/nova/commit/4cda8f70686da409eaec962abc9138607686eed7
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 4cda8f70686da409eaec962abc9138607686eed7
Author: Brian Waldon <email address hidden>
Date: Tue Nov 1 15:10:45 2011 -0400

    Fixing immediate delete after boot on Libvirt

    Addresses bug 884858

    Change-Id: Ice05193fce7963dd9742b072cdb4b11882032abe

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2011-11-17
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-1 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers