Ask Your Question

Can not retrieve instance data

asked 2014-10-27 14:49:36 -0500

bgyako gravatar image

Hi All,

Running into a weird problem recently.

If I use a user account and run nova list --all_tenants response comes back with all instances for that project.

If I use admin account and try to retrieve information on all instance with command nova list --all_tenants

Get error:

ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-f07dbb7d-102f-4ff3-a1b2-9069e006d93b)

Nova-conductor has a DB lock error:

ERROR oslo.messaging._drivers.common [-] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/", line 133, in _dispatch_and_reply\n    incoming.message))\n', '  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/", line 176, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt, args)\n', '  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/", line 122, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt, **new_args)\n', '  File "/usr/lib/python2.7/dist-packages/nova/conductor/", line 987, in service_update\n    return self.manager.service_update(context, service, values)\n', '  File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/", line 139, in inner\n    return func(*args, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/nova/conductor/", line 491, in service_update\n    svc = self.db.service_update(context, service[\'id\'], values)\n', '  File "/usr/lib/python2.7/dist-packages/nova/db/", line 148, in service_update\n    return IMPL.service_update(context, service_id, values)\n', '  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/", line 146, in wrapper\n    return f(*args, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/", line 202, in wrapped\n    return f(*args, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/", line 534, in service_update\n    service_ref.update(values)\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 447, in __exit__\n    self.rollback()\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/", line 58, in __exit__\n    compat.reraise(exc_type, exc_value, exc_tb)\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 444, in __exit__\n    self.commit()\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 358, in commit\n    t[1].commit()\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/", line 1195, in commit\n    self._do_commit()\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/", line 1226, in _do_commit\n    self.connection._commit_impl()\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/", line 491, in _commit_impl\n    self._handle_dbapi_exception(e, None, None, None, None)\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/", line 1024, in _handle_dbapi_exception\n    exc_info\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/", line 196, in raise_from_cause\n    reraise(type(exception), exception, tb=exc_tb)\n', '  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/", line 488, in _commit_impl\n    self.engine.dialect.do_commit(self.connection)\n', '  File "/usr ...
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-18 12:51:52 -0500

bgyako gravatar image
edit flag offensive delete link more

answered 2014-10-27 15:45:03 -0500

edit flag offensive delete link more


These do not apply to my issue. It appears it is only impacting 1 project. In addition, if I run command that retrieves information for all projects that will fail as well. Any nova or keystone command that does not pull specific information for this 1 project works.

bgyako gravatar imagebgyako ( 2014-10-27 18:43:43 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-10-27 14:49:36 -0500

Seen: 273 times

Last updated: Nov 18 '14