Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova list --all-tenants faced error

first of all I am using openstack juno on debian wheezy

when I am trying nova list --all-tenants I faced the error bellow in horizon

Error: Unable to retrieve instance list.

nova-api.log returns:

31809 ERROR nova.api.openstack [req-2bc92551-f72d-483b-8b86-735c5b1976a6 None] Caught error: 'instance_type_memory_mb'
31809 TRACE nova.api.openstack Traceback (most recent call last):
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 124, in __call__
31809 TRACE nova.api.openstack     return req.get_response(self.application)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
31809 TRACE nova.api.openstack     application, catch_exc_info=False)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
31809 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
31809 TRACE nova.api.openstack     return resp(environ, start_response)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py", line 685, in __call__
31809 TRACE nova.api.openstack     return self._app(env, start_response)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
31809 TRACE nova.api.openstack     return resp(environ, start_response)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
31809 TRACE nova.api.openstack     return resp(environ, start_response)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
31809 TRACE nova.api.openstack     response = self.app(environ, start_response)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
31809 TRACE nova.api.openstack     return resp(environ, start_response)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
31809 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
31809 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 908, in __call__
31809 TRACE nova.api.openstack     content_type, body, accept)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 973, in _process_stack
31809 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1057, in dispatch
31809 TRACE nova.api.openstack     return method(req=request, **action_args)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 520, in detail
31809 TRACE nova.api.openstack     servers = self._get_servers(req, is_detail=True)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 615, in _get_servers
31809 TRACE nova.api.openstack     response = self._view_builder.detail(req, instance_list)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/views/servers.py", line 124, in detail
31809 TRACE nova.api.openstack     return self._list_view(self.show, request, instances, coll_name)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/views/servers.py", line 136, in _list_view
31809 TRACE nova.api.openstack     server_list = [func(request, server)["server"] for server in servers]
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/views/servers.py", line 95, in show
31809 TRACE nova.api.openstack     "flavor": self._get_flavor(request, instance),
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/views/servers.py", line 195, in _get_flavor
31809 TRACE nova.api.openstack     instance_type = flavors.extract_flavor(instance)
31809 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/compute/flavors.py", line 299, in extract_flavor
31809 TRACE nova.api.openstack     instance_type[key] = type_fn(sys_meta[type_key])
31809 TRACE nova.api.openstack KeyError: 'instance_type_memory_mb'

a little more deep in debug mode I found the following error which does not have any meaning to me:

#nova list --all-tenants --debug

REQ: curl -i 'http://controller:8774/v2/a904e3dce5d047fbbd7cdc716702bd8b/servers/detail?all_tenants=1' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: admin" -H "X-Auth-Token: {SHA1}61a77926c58eb7b0a2dcfba4cf133cccab2c7480"
INFO (connectionpool:187) Starting new HTTP connection (1): controller
DEBUG (connectionpool:353) "GET /v2/a904e3dce5d047fbbd7cdc716702bd8b/servers/detail?all_tenants=1 HTTP/1.1" 500 128
RESP: [500] {'date': 'Wed, 11 Mar 2015 08:45:24 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-00776992-fab1-46bd-8def-88f5e8afa683'}
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:802) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-00776992-fab1-46bd-8def-88f5e8afa683)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 799, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 729, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 1172, in do_list
    search_opts=search_opts)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 594, in list
    return self._list("/servers%s%s" % (detail, query_string), "servers")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 67, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 482, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 459, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 441, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 435, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-00776992-fab1-46bd-8def-88f5e8afa683)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-00776992-fab1-46bd-8def-88f5e8afa683)

have you any idea where this comes from? I tried also nova-mange db sync but there is no effect on error