** Changed in: nova
Status: Fix Committed => Fix Released
--
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/1287945
Title:
Instance doesn't have a task state
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
I am getting with the latest version of the trunk:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line
97, in wait
readers.get(fileno, noop).cb(fileno)
File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line
194, in main
result = function(*args, **kwargs)
File "/opt/stack/nova/nova/openstack/common/service.py", line 480, in
run_service
service.start()
File "/opt/stack/nova/nova/service.py", line 180, in start
self.manager.init_host()
File "/opt/stack/nova/nova/compute/manager.py", line 824, in init_host
self._init_instance(context, instance)
File "/opt/stack/nova/nova/compute/manager.py", line 684, in _init_instance
if instance.task_state == task_states.DELETING:
AttributeError: 'dict' object has no attribute 'task_state'
Removing descriptor: 6
2014-03-04 13:59:14.304 ERROR nova.openstack.common.threadgroup [-] 'dict'
object has no attribute 'task_state'
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup Traceback
(most recent call last):
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/opt/stack/nova/nova/openstack/common/threadgroup.py", line 117, in wait
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup x.wait()
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/opt/stack/nova/nova/openstack/common/threadgroup.py", line 49, in wait
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup return
self.thread.wait()
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in
wait
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup return
self._exit_event.wait()
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup return
hubs.get_hub().switch()
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in
switch
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup return
self.greenlet.switch()
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in
main
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup result =
function(*args, **kwargs)
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/opt/stack/nova/nova/openstack/common/service.py", line 480, in run_service
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup
service.start()
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/opt/stack/nova/nova/service.py", line 180, in start
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup
self.manager.init_host()
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/opt/stack/nova/nova/compute/manager.py", line 824, in init_host
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup
self._init_instance(context, instance)
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup File
"/opt/stack/nova/nova/compute/manager.py", line 684, in _init_instance
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup if
instance.task_state == task_states.DELETING:
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup
AttributeError: 'dict' object has no attribute 'task_state'
2014-03-04 13:59:14.304 TRACE nova.openstack.common.threadgroup
I get this exception when creating a snapshot, put a breakpoint in the virt
layer (in this case vmware_images/snapshot), stop nova-cpu, restart nova-cpu,
delete the snapshot.
nova-cpu crashes.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1287945/+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