cells: Object action destroy failed because: host changed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
2015-04-24 15:21:05.563 ERROR nova.api.openstack [req-99d82867-
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack Traceback (most recent call last):
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return req.get_
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack application, catch_exc_
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack app_iter = application(
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return resp(environ, start_response)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return self._call_app(env, start_response)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return self._app(env, _fake_start_
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return resp(environ, start_response)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return resp(environ, start_response)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack response = self.app(environ, start_response)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return resp(environ, start_response)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/usr/local/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack content_type, body, accept)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return method(req=request, **action_args)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack self._delete(
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack self.compute_
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack self._handle_
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack self._do_delete)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack instance.destroy()
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack return fn(self, *args, **kwargs)
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack File "/opt/stack/
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack reason='host changed')
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack ObjectActionError: Object action destroy failed because: host changed
2015-04-24 15:21:05.563 32393 TRACE nova.api.openstack
21 hits in 7 days. It's 90% failure when it happens though.
I also noticed this in the compute logs:
A separate query on that shows it happens quite a bit though in normal gate runs:
tags: | added: cells unified-objects |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | nobody → tianzichen306 (tianzichen306) |
Changed in nova: | |
assignee: | tianzichen306 (tianzichen306) → nobody |
By investigating a separate issue, we know that the following pattern (ie. calling twice an instance.save() method) can be racy : /github. com/openstack/ tempest/ blob/2b7373dbb1 524ff7be4165714 678fdd2fac41590 /tempest/ api/compute/ servers/ test_list_ servers_ negative. py#L45- L46
https:/
I just wonder how much https:/ /review. openstack. org/#/c/ 177356/ could help