update cell error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Russell Bryant |
Bug Description
I updated the cell info and the response is as follows:
{
"computeFault": {
"message": "The server has either erred or is incapable of performing the requested operation.",
"code": 500
}
}
I found error in nova-cells.log:
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack Traceback (most recent call last):
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return req.get_
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack application, catch_exc_
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack app_iter = application(
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return self.app(env, start_response)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack response = self.app(environ, start_response)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return resp(environ, start_response)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack content_type, body, accept)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return method(req=request, **action_args)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return dict(cell=
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack cell_info = _filter_keys(cell, keys)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack File "/usr/lib/
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack return dict((k, v) for k, v in item.iteritems() if k in keys)
2013-07-07 23:55:20.777 31477 TRACE nova.api.openstack AttributeError: 'Query' object has no attribute 'iteritems'
I viewed the code and found that:
@require_
def cell_update(
session = get_session()
with session.begin():
cell = _cell_get_
return cell
The method nova.db.
def _filter_keys(item, keys):
"""
Filters all model attributes except for keys
item is a dict
"""
return dict((k, v) for k, v in item.iteritems() if k in keys)
The method nova.api.
This bring on the error.
tags: | added: cells |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → havana-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
tags: | added: grizzly-backport-potential |
Changed in nova: | |
milestone: | havana-rc1 → 2013.2 |
tags: | removed: grizzly-backport-potential |
Fix proposed to branch: master /review. openstack. org/45718
Review: https:/