← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1147387] Re: trying to delete an instance in 'RESIZE' state fails

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-rc1

-- 
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/1147387

Title:
  trying to delete an instance in 'RESIZE' state fails

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Using recent Nova grizzly code (git bcafae5) I'm now seeing the
  following exception when I try to delete an instance in the RESIZE
  state.

  
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     temp_level, payload)
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 88, in wrapped
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 256, in decorated_function
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     event_name, instance_uuid):
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/utils.py", line 317, in __enter__
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     self.conductor.action_event_start(self.context, event)
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/conductor/api.py", line 261, in action_event_start
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     return self._manager.action_event_start(context, values)
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/utils.py", line 1430, in wrapper
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     return func(*args, **kwargs)
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 331, in action_event_start
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     evt = self.db.action_event_start(context, values)
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/db/api.py", line 1637, in action_event_start
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     return IMPL.action_event_start(context, values)
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 4556, in action_event_start
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp     instance_uuid=values['instance_uuid'])
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp InstanceActionNotFound: Action for request_id req-1d8a3942-3f64-40fd-829f-4832d83c56fb on instance af217dbd-286e-47f9-aed7-0b9389bda5c4 not found
  2013-03-05 10:28:57.803 21673 TRACE nova.openstack.common.rpc.amqp
  2013-03-05 10:28:57.805 ERROR nova.openstack.common.rpc.common [req-1d8a3942-3f64-40fd-829f-4832d83c56fb 649f11019c074251a512e8275ff333dc c8d62a65698f4398ba3d3c458aceb0ad] Returning exception Action for request_id req-1d8a3942-3f64-40fd-829f-4832d83c56fb on instance af217dbd-286e-47f9-aed7-0b9389bda5c4 not found to caller

  -----

  The issue seems to be that when doing a delete on a resized instance
  Nova automatically does the resize revert/confirm for you... but we
  are missing an extra instance_action_start in that case.

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