Cells service_get_by_compute_host fails on object conversion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Andrew Laski |
Bug Description
When pulling service information on a compute node with cells there is a failure to convert the compute node db dict into an object. This is due to the id field being of the form 'region!child@1' while the compute_node object id field is expected to be an int.
2015-01-06 17:17:07.365 ERROR nova.api.openstack [req-b8e62f38-
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack Traceback (most recent call last):
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return req.get_
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/lib/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack application, catch_exc_
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/lib/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack app_iter = application(
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/lib/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return resp(environ, start_response)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/local/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return self._call_app(env, start_response)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/local/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return self._app(env, _fake_start_
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/lib/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return resp(environ, start_response)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/lib/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return resp(environ, start_response)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/local/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack response = self.app(environ, start_response)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/lib/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return resp(environ, start_response)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/usr/lib/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack content_type, body, accept)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return method(req=request, **action_args)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack service = self.api.
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack db_service)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack service.
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack context, objects.
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack compute[key] = db_compute[key]
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack setattr(self, name, value)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack field_value = field.coerce(self, name, value)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return self._type.
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack File "/opt/stack/
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack return int(value)
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack ValueError: invalid literal for int() with base 10: 'region!child@1'
2015-01-06 17:17:07.365 21844 TRACE nova.api.openstack
Changed in nova: | |
assignee: | nobody → Andrew Laski (alaski) |
Changed in nova: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-2 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/145362
Review: https:/