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

** Changed in: nova
    Milestone: None => juno-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/1339235

Title:
  UnexpectedTaskStateError: Unexpected task state: expecting (u
  'powering-off',) but the actual state is None

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  This is showing up all over the n-cpu logs on teardown of tempest
  tests:

  UnexpectedTaskStateError: Unexpected task state: expecting (u
  'powering-off',) but the actual state is None

  For example:

  http://logs.openstack.org/06/103206/4/check/check-tempest-dsvm-
  postgres-full/b5e8f3c/logs/screen-n-cpu.txt.gz?level=TRACE

  We have nearly 40K hits on this in logstash in 7 days:

  message:"UnexpectedTaskStateError: Unexpected task state: expecting (u
  'powering-off',) but the actual state is None" AND
  tags:"screen-n-cpu.txt"

  
http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOlwiVW5leHBlY3RlZFRhc2tTdGF0ZUVycm9yOiBVbmV4cGVjdGVkIHRhc2sgc3RhdGU6IGV4cGVjdGluZyAodSdwb3dlcmluZy1vZmYnLCkgYnV0IHRoZSBhY3R1YWwgc3RhdGUgaXMgTm9uZVwiIEFORCB0YWdzOlwic2NyZWVuLW4tY3B1LnR4dFwiIiwiZmllbGRzIjpbXSwib2Zmc2V0IjowLCJ0aW1lZnJhbWUiOiI2MDQ4MDAiLCJncmFwaG1vZGUiOiJjb3VudCIsInRpbWUiOnsidXNlcl9pbnRlcnZhbCI6MH0sInN0YW1wIjoxNDA0ODQxMjQ3MDk4fQ==

  This is the interesting traceback from the compute manager:

  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher Traceback 
(most recent call last):
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 
134, in _dispatch_and_reply
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
incoming.message))
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 
177, in _dispatch
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     return 
self._do_dispatch(endpoint, method, ctxt, args)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 
123, in _do_dispatch
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     result 
= getattr(endpoint, method)(ctxt, **new_args)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/exception.py", line 88, in wrapped
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     payload)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/openstack/common/excutils.py", line 82, in __exit__
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
six.reraise(self.type_, self.value, self.tb)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/exception.py", line 71, in wrapped
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     return 
f(self, context, *args, **kw)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/compute/manager.py", line 272, in decorated_function
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
LOG.info(_("Task possibly preempted: %s") % e.format_message())
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/openstack/common/excutils.py", line 82, in __exit__
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
six.reraise(self.type_, self.value, self.tb)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/compute/manager.py", line 266, in decorated_function
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     return 
function(self, context, *args, **kwargs)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/compute/manager.py", line 330, in decorated_function
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     return 
function(self, context, *args, **kwargs)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/compute/manager.py", line 308, in decorated_function
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
kwargs['instance'], e, sys.exc_info())
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/openstack/common/excutils.py", line 82, in __exit__
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
six.reraise(self.type_, self.value, self.tb)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/compute/manager.py", line 296, in decorated_function
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     return 
function(self, context, *args, **kwargs)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/compute/manager.py", line 2356, in stop_instance
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
instance.save(expected_task_state=task_states.POWERING_OFF)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/objects/base.py", line 187, in wrapper
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     ctxt, 
self, fn.__name__, args, kwargs)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/opt/stack/new/nova/nova/conductor/rpcapi.py", line 349, in object_action
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
objmethod=objmethod, args=args, kwargs=kwargs)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/client.py", line 
152, in call
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
retry=self.retry)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/usr/local/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 90, 
in _send
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
timeout=timeout, retry=retry)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", 
line 404, in send
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     
retry=retry)
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher   File 
"/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", 
line 395, in _send
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher     raise 
result
  2014-07-08 00:46:47.922 18853 TRACE oslo.messaging.rpc.dispatcher 
UnexpectedTaskStateError_Remote: Unexpected task state: expecting 
(u'powering-off',) but the actual state is None

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to