test_create_image_with_reboot fails with UnexpectedTaskStateError in gate-nova-python*

Bug #1291620 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Incomplete
Medium
Unassigned
Revision history for this message
Matt Riedemann (mriedem) wrote :
Joe Gordon (jogo)
Changed in nova:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Ken'ichi Ohmichi (oomichi) wrote :
Download full text (3.2 KiB)

I investigated this problem according to http://logs.openstack.org/85/105485/4/gate/gate-nova-python26/3c56855/ , and the cause seems the same as https://bugs.launchpad.net/nova/+bug/1311778 .
That would be race between periodic tasks and REST API task.

WARNING [nova.compute.manager] Instance is not stopped. Calling the stop API.
ERROR [nova.compute.manager] error during stop() in sync_power_state.
Traceback (most recent call last):
  File "nova/compute/manager.py", line 5557, in _sync_instance_power_state
    self.compute_api.force_stop(context, db_instance)
  File "nova/compute/api.py", line 1767, in force_stop
    self.compute_rpcapi.stop_instance(context, instance, do_cast=do_cast)
  File "nova/compute/rpcapi.py", line 908, in stop_instance
    return rpc_method(ctxt, 'stop_instance', instance=instance)
  File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/oslo/messaging/rpc/client.py", line 150, in call
    wait_for_reply=True, timeout=timeout)
  File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/oslo/messaging/transport.py", line 90, in _send
    timeout=timeout)
  File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/oslo/messaging/_drivers/impl_fake.py", line 166, in send
    return self._send(target, ctxt, message, wait_for_reply, timeout)
  File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/oslo/messaging/_drivers/impl_fake.py", line 161, in _send
    'No reply on topic %s' % target.topic)
MessagingTimeout: No reply on topic compute
WARNING [nova.service] Service killed that has no database entry
}}}

Traceback (most recent call last):
  File "nova/tests/api/ec2/test_cloud.py", line 2532, in test_create_image_with_reboot
    self._do_test_create_image(False)
  File "nova/tests/api/ec2/test_cloud.py", line 2505, in _do_test_create_image
    no_reboot=no_reboot)
  File "nova/api/ec2/cloud.py", line 1752, in create_image
    self.compute_api.start(context, instance)
  File "nova/compute/api.py", line 182, in inner
    return function(self, context, instance, *args, **kwargs)
  File "nova/compute/api.py", line 173, in wrapped
    return function(self, context, instance, *args, **kwargs)
  File "nova/compute/api.py", line 209, in _wrapped
    return fn(self, context, instance, *args, **kwargs)
  File "nova/compute/api.py", line 163, in inner
    return f(self, context, instance, *args, **kw)
  File "nova/compute/api.py", line 1786, in start
    instance.save(expected_task_state=[None])
  File "nova/objects/base.py", line 196, in wrapper
    return fn(self, ctxt, *args, **kwargs)
  File "nova/objects/instance.py", line 469, in save
    columns_to_join=_expected_cols(expected_attrs))
  File "nova/db/api.py", line 780, in instance_update_and_get_original
    columns_to_join=columns_to_join)
  File "nova/db/sqlalchemy/api.py", line 167, in wrapper
    return f(*args, **kwargs)
  File "nova/db/sqlalchemy/api.py", line 2238, in instance_update_and_get_original
    columns_to_join=columns_to_join)
  File "nova/db/sqlalchemy/api.py", line 2289, in _instance_update
    actual=actual_state, expected=expected)...

Read more...

Revision history for this message
Joe Gordon (jogo) wrote :

No hits in the past 10 days looks like this bug was resolved or it now has a different fingerprint

Changed in nova:
status: Triaged → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.