nova list --all-tenants faced error

asked 2015-03-11 04:10:35 -0500

Moe gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

Comments

Have you tried openstack-service restart and then openstack-service | grep fail to see if everything is ok?

lnxslck gravatar imagelnxslck ( 2015-03-11 05:13:53 -0500 )edit

@lnxslck actually there is not any openstack-service restart command on debian version if you mean controller services I should say yes I have restarted every service on controller node :)

I think my problem is from somme inconsitensi in mysql database novadb have ou any idea to fix the error

Moe gravatar imageMoe ( 2015-03-11 05:22:28 -0500 )edit

Can you source the openrc file in the root dir and try nova-manage db sync see if that gives any error. Maybe the solution for you is to reinstall that db.

lnxslck gravatar imagelnxslck ( 2015-03-11 06:11:41 -0500 )edit

Other nova commands works? Or only nova list fails?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-03-11 07:28:00 -0500 )edit

@lnxslck : nova-manage db sync runs without problem an no error returned

@Eduardo Gonzalez : yes nova works it seems only one of the tenants faced a problem and causes this problem because nova list returns the list of admin tenant instances without problem. nova list --all-tenants fails

Moe gravatar imageMoe ( 2015-03-11 08:05:00 -0500 )edit