Instance could not be terminated after deleting a network

Bug #1008875 reported by David Naori
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Michael Still

Bug Description

Instance could not be terminated after deleting a network

2012-06-05 10:41:56 TRACE nova.rpc.amqp Traceback (most recent call last):
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/rpc/amqp.py", line 252, in _process_data
2012-06-05 10:41:56 TRACE nova.rpc.amqp rval = node_func(context=ctxt, **node_args)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/exception.py", line 114, in wrapped
2012-06-05 10:41:56 TRACE nova.rpc.amqp return f(*args, **kw)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 153, in decorated_function
2012-06-05 10:41:56 TRACE nova.rpc.amqp function(self, context, instance_uuid, *args, **kwargs)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 177, in decorated_function
2012-06-05 10:41:56 TRACE nova.rpc.amqp sys.exc_info())
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
2012-06-05 10:41:56 TRACE nova.rpc.amqp self.gen.next()
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 171, in decorated_function
2012-06-05 10:41:56 TRACE nova.rpc.amqp return function(self, context, instance_uuid, *args, **kwargs)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 747, in terminate_instance
2012-06-05 10:41:56 TRACE nova.rpc.amqp do_terminate_instance()
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/utils.py", line 946, in inner
2012-06-05 10:41:56 TRACE nova.rpc.amqp retval = f(*args, **kwargs)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 740, in do_terminate_instance
2012-06-05 10:41:56 TRACE nova.rpc.amqp self._delete_instance(context, instance)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 718, in _delete_instance
2012-06-05 10:41:56 TRACE nova.rpc.amqp self._shutdown_instance(context, instance, 'Terminating')
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 678, in _shutdown_instance
2012-06-05 10:41:56 TRACE nova.rpc.amqp network_info = self._get_instance_nw_info(context, instance)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 313, in _get_instance_nw_info
2012-06-05 10:41:56 TRACE nova.rpc.amqp instance)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/network/api.py", line 219, in get_instance_nw_info
2012-06-05 10:41:56 TRACE nova.rpc.amqp 'args': args})
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/rpc/__init__.py", line 68, in call
2012-06-05 10:41:56 TRACE nova.rpc.amqp return _get_impl().call(context, topic, msg, timeout)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/rpc/impl_qpid.py", line 521, in call
2012-06-05 10:41:56 TRACE nova.rpc.amqp return rpc_amqp.call(context, topic, msg, timeout, Connection.pool)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/rpc/amqp.py", line 338, in call
2012-06-05 10:41:56 TRACE nova.rpc.amqp rv = list(rv)
2012-06-05 10:41:56 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/rpc/amqp.py", line 306, in __iter__
2012-06-05 10:41:56 TRACE nova.rpc.amqp raise result
2012-06-05 10:41:56 TRACE nova.rpc.amqp RemoteError: Remote error: NetworkNotFound Network 2 could not be found.

Reproduce steps:
1) nova-manage network create
2) launch an instance
3) nova-manage network delete
4) terminate instance

Tags: ops
Michael Still (mikal)
tags: added: ops
Changed in nova:
importance: Undecided → High
status: New → Triaged
assignee: nobody → Michael Still (mikalstill)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/10847

Changed in nova:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/10847
Committed: http://github.com/openstack/nova/commit/27ffef9c77d17e2252785bdc1117763248a374d0
Submitter: Jenkins
Branch: master

commit 27ffef9c77d17e2252785bdc1117763248a374d0
Author: Michael Still <email address hidden>
Date: Sun Aug 5 20:05:23 2012 +1000

    Handle NetworkNotFound in _shutdown_instance.

    If no network is found, continue to perform the rest of the instance
    shutdown, instead of propogating the exception. Resolves bug 1008875.

    Change-Id: Ia78480edaed52932830da7b4e49c15fd2e1fa315

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-3 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.