← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1266379] [NEW] InstanceInvalidState exception not caught in server start/stop

 

Public bug reported:

A failed tempest run picked up this issue:

2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/api/openstack/extensions.py", line 470, in wrapped
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return f(*args, **kwargs)
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/api/openstack/compute/plugins/v3/servers.py", line 1305, in _start_server
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     self.compute_api.start(context, instance)
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 199, in wrapped
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return func(self, context, target, *args, **kwargs)
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 189, in inner
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return function(self, context, instance, *args, **kwargs)
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 180, in wrapped
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return function(self, context, instance, *args, **kwargs)
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 216, in _wrapped
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return fn(self, context, instance, *args, **kwargs)
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 154, in inner
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     method=f.__name__)
2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions InstanceInvalidState: Instance 35a70836-21c4-4770-b929-a1bd080b85d3 in vm_state error. Cannot start while the instance is in this state.

We should catch this exception in both server start/stop

** Affects: nova
     Importance: Undecided
     Assignee: Christopher Yeoh (cyeoh-0)
         Status: New


** Tags: api

** Tags added: api

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

Title:
  InstanceInvalidState exception not caught in server start/stop

Status in OpenStack Compute (Nova):
  New

Bug description:
  A failed tempest run picked up this issue:

  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions Traceback (most recent call last):
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/api/openstack/extensions.py", line 470, in wrapped
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return f(*args, **kwargs)
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/api/openstack/compute/plugins/v3/servers.py", line 1305, in _start_server
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     self.compute_api.start(context, instance)
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 199, in wrapped
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return func(self, context, target, *args, **kwargs)
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 189, in inner
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return function(self, context, instance, *args, **kwargs)
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 180, in wrapped
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return function(self, context, instance, *args, **kwargs)
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 216, in _wrapped
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     return fn(self, context, instance, *args, **kwargs)
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions   File "/opt/stack/new/nova/nova/compute/api.py", line 154, in inner
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions     method=f.__name__)
  2014-01-06 06:50:04.124 26085 TRACE nova.api.openstack.extensions InstanceInvalidState: Instance 35a70836-21c4-4770-b929-a1bd080b85d3 in vm_state error. Cannot start while the instance is in this state.

  We should catch this exception in both server start/stop

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


Follow ups

References