Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova image-list returns HTTP 500

I've just setup a new OpenStack Kilo install and have installed Keystone, Glance and Nova. I'm following the Kilo instructions for the yum trunk, and am at the point of verifying the Nova install.

When I run 'nova image-list' I get a 'ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500)'

I can successfully get an output from 'glance image-list'.

This is the log output from the nova-api.log:

2015-05-13 12:31:05.942 25382 INFO nova.api.openstack [req-9208d45f-b83c-4760-91ef-1e1acdfcbac5 f4e3ed4cc560466abe340b04dcb989b1 15888f03c6c94a3092accd3f3d0d1775 - - -] http://cont1:8774/v2/15888f03c6c94a3092accd3f3d0d1775/images/detail returned with HTTP 500 2015-05-13 12:31:05.944 25382 INFO nova.osapi_compute.wsgi.server [req-9208d45f-b83c-4760-91ef-1e1acdfcbac5 f4e3ed4cc560466abe340b04dcb989b1 15888f03c6c94a3092accd3f3d0d1775 - - -] 10.0.0.11 "GET /v2/15888f03c6c94a3092accd3f3d0d1775/images/detail HTTP/1.1" status: 500 len: 359 time: 0.2966590 2015-05-13 12:32:39.449 25382 ERROR nova.api.openstack [req-6d072df3-273c-449e-bd04-f7e4b7abefc1 f4e3ed4cc560466abe340b04dcb989b1 15888f03c6c94a3092accd3f3d0d1775 - - -] Caught error: Error finding address for http://cont1:80/v1/images/detail?is_public=none&limit=20: ('Connection aborted.', error(111, 'ECONNREFUSED')) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack Traceback (most recent call last): 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/__init__.py", line 125, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return req.get_response(self.application) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/request.py", line 1296, in send 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack application, catch_exc_info=False) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack app_iter = application(self.environ, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return resp(environ, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return self._call_app(env, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return self._app(env, _fake_start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return resp(environ, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return resp(environ, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack response = self.app(environ, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return resp(environ, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack resp = self.call_func(req, args, *self.kwargs) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return self.func(req, args, *kwargs) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 756, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack content_type, body, accept) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 821, in _process_stack 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 911, in dispatch 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return method(req=request, *action_args) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py", line 144, in detail 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack *page_params) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 68, in get_all 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return session.detail(context, *kwargs) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 274, in detail 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack for image in images: 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 249, in list 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack for image in paginate(params, return_request_id): 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 233, in paginate 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack images, resp = self._list(url, "images") 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 63, in _list 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack resp, body = self.client.get(url) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 262, in get 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return self._request('GET', url, *kwargs) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 217, in _request 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack raise exc.CommunicationError(message=message) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack CommunicationError: Error finding address for http://cont1:80/v1/images/detail?is_public=none&limit=20: ('Connection aborted.', error(111, 'ECONNREFUSED')) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack 2015-05-13 12:32:39.451 25382 INFO nova.api.openstack [req-6d072df3-273c-449e-bd04-f7e4b7abefc1 f4e3ed4cc560466abe340b04dcb989b1 15888f03c6c94a3092accd3f3d0d1775 - - -] http://cont1:8774/v2/15888f03c6c94a3092accd3f3d0d1775/images/detail returned with HTTP 500 2015-05-13 12:32:39.453 25382 INFO nova.osapi_compute.wsgi.server [req-6d072df3-273c-449e-bd04-f7e4b7abefc1 f4e3ed4cc560466abe340b04dcb989b1 15888f03c6c94a3092accd3f3d0d1775 - - -] 10.0.0.11 "GET /v2/15888f03c6c94a3092accd3f3d0d1775/images/detail HTTP/1.1" status: 500 len: 359 time: 0.0721130

And this output when I run 'nova --debug image-list':

DEBUG (session:195) REQ: curl -g -i -X GET http://cont1:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" INFO (connectionpool:203) Starting new HTTP connection (1): cont1 DEBUG (connectionpool:383) "GET /v3 HTTP/1.1" 200 245 DEBUG (session:224) RESP: [200] content-length: 245 vary: X-Auth-Token connection: keep-alive date: Wed, 13 May 2015 00:34:21 GMT content-type: application/json x-openstack-request-id: req-9d950f40-0753-417e-8f38-d3fd2a366994 RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://cont1:35357/v3/", "rel": "self"}]}}

DEBUG (base:171) Making authentication request to http://cont1:35357/v3/auth/tokens DEBUG (connectionpool:383) "POST /v3/auth/tokens HTTP/1.1" 201 2212 DEBUG (iso8601:184) Parsed 2015-05-13T01:34:21.810648Z into {'tz_sign': None, 'second_fraction': u'810648', 'hour': u'01', 'daydash': u'13', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'21', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'05', 'day': None, 'minute': u'34'} with default timezone <iso8601.iso8601.utc object="" at="" 0x1dab310=""> DEBUG (iso8601:140) Got u'2015' for 'year' with default None DEBUG (iso8601:140) Got u'05' for 'monthdash' with default 1 DEBUG (iso8601:140) Got 5 for 'month' with default 5 DEBUG (iso8601:140) Got u'13' for 'daydash' with default 1 DEBUG (iso8601:140) Got 13 for 'day' with default 13 DEBUG (iso8601:140) Got u'01' for 'hour' with default None DEBUG (iso8601:140) Got u'34' for 'minute' with default None DEBUG (iso8601:140) Got u'21' for 'second' with default None DEBUG (session:195) REQ: curl -g -i -X GET http://cont1:8774/v2/15888f03c6c94a3092accd3f3d0d1775/images/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}5442fb918247dcc24f38c2bf8aca09f6610c15fd" INFO (connectionpool:203) Starting new HTTP connection (1): cont1 DEBUG (connectionpool:383) "GET /v2/15888f03c6c94a3092accd3f3d0d1775/images/detail HTTP/1.1" 500 128 DEBUG (session:224) RESP: DEBUG (shell:914) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-69c8ddcf-ef3a-4ded-a0a4-59354a1e8efa) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 911, in main OpenStackComputeShell().main(argv) File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 838, in main args.func(self.cs, args) File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 1091, in do_image_list image_list = cs.images.list(limit=limit) File "/usr/lib/python2.7/site-packages/novaclient/v2/images.py", line 69, in list return self._list('/images%s%s' % (detail, query), 'images') File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 64, in _list _resp, body = self.api.client.get(url) File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get return self.request(url, 'GET', **kwargs) File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 96, 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-69c8ddcf-ef3a-4ded-a0a4-59354a1e8efa) ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-69c8ddcf-ef3a-4ded-a0a4-59354a1e8efa)

Any ideas what's going on here? I'm kinda hesitant to carry on the install until Nova can properly query Glance for images.

Thanks!