← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1479941] [NEW] cells: deleting an instance with cell_name set that doesn't exist in the cell fails

 

Public bug reported:

2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging [req-1ce8e3f7-a14f-4687-891c-a1541dfdce41 3742 391232 - - -] Error processing message locally
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging Traceback (most recent call last):
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/cells/messaging.py", line 200, in _process_locally
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     resp_value = self.msg_runner._process_message_locally(self)
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/cells/messaging.py", line 1296, in _process_message_locally
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     return fn(message, **message.method_kwargs)
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/cells/messaging.py", line 1078, in instance_destroy_at_top
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     instance=instance)
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     six.reraise(self.type_, self.value, self.tb)
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/cells/messaging.py", line 1065, in instance_destroy_at_top
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     instance.destroy()
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/objects/base.py", line 116, in wrapper
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     return fn(self, *args, **kwargs)
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/objects/instance.py", line 651, in destroy
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     reason='already destroyed')
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging ObjectActionError: Object action destroy failed because: already destroyed
2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging 

The exception being raised is
http://git.openstack.org/cgit/openstack/nova/tree/nova/objects/instance.py?id=a74f07a92356187d3455e5a9e2418fb1ea697f96#n614

What's happening is that the instance does not exist in the cell so
instance.destroy is being called with an instance object instantiated
like "objects.Instance(context=ctxt, uuid=instance.uuid)" so instance.id
is not set.  So we should probably try to look up the instance when this
failure occurs in instance_destroy_at_top.

** Affects: nova
     Importance: Undecided
     Assignee: Andrew Laski (alaski)
         Status: New


** Tags: cells

** Changed in: nova
     Assignee: (unassigned) => Andrew Laski (alaski)

** Tags added: cells

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1479941

Title:
  cells: deleting an instance with cell_name set that doesn't exist in
  the cell fails

Status in OpenStack Compute (nova):
  New

Bug description:
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging [req-1ce8e3f7-a14f-4687-891c-a1541dfdce41 3742 391232 - - -] Error processing message locally
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging Traceback (most recent call last):
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/cells/messaging.py", line 200, in _process_locally
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     resp_value = self.msg_runner._process_message_locally(self)
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/cells/messaging.py", line 1296, in _process_message_locally
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     return fn(message, **message.method_kwargs)
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/cells/messaging.py", line 1078, in instance_destroy_at_top
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     instance=instance)
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/oslo_utils/excutils.py", line 119, in __exit__
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     six.reraise(self.type_, self.value, self.tb)
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/cells/messaging.py", line 1065, in instance_destroy_at_top
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     instance.destroy()
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/objects/base.py", line 116, in wrapper
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     return fn(self, *args, **kwargs)
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging   File "/opt/rackstack/rackstack.301.55/nova/lib/python2.7/site-packages/nova/objects/instance.py", line 651, in destroy
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging     reason='already destroyed')
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging ObjectActionError: Object action destroy failed because: already destroyed
  2015-07-28 19:29:33.153 23754 ERROR nova.cells.messaging 

  The exception being raised is
  http://git.openstack.org/cgit/openstack/nova/tree/nova/objects/instance.py?id=a74f07a92356187d3455e5a9e2418fb1ea697f96#n614

  What's happening is that the instance does not exist in the cell so
  instance.destroy is being called with an instance object instantiated
  like "objects.Instance(context=ctxt, uuid=instance.uuid)" so
  instance.id is not set.  So we should probably try to look up the
  instance when this failure occurs in instance_destroy_at_top.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1479941/+subscriptions


Follow ups