Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

nova image-list error

Hi,

I'm following the Liberty installation guide for Ubuntu 14.04 and getting the following error when trying to run "nova image-list".

root@controller:/home/mrahma04# nova --debug image-list
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v3 HTTP/1.1" 200 250
DEBUG (session:215) RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Thu, 19 Nov 2015 00:43:37 GMT x-openstack-request-id: req-f70fd4c8-8875-4642-8c6a-c953ad959928 Content-Type: application/json X-Distribution: Ubuntu 
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://controller:35357/v3/", "rel": "self"}]}}

DEBUG (base:188) Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG (connectionpool:385) "POST /v3/auth/tokens HTTP/1.1" 201 2257
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}37f8b3b92be33dd173b121d99e804cd6a96f5486"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v2/ HTTP/1.1" 200 375
DEBUG (session:215) RESP: [200] Date: Thu, 19 Nov 2015 00:43:37 GMT Connection: keep-alive Content-Type: application/json Content-Length: 375 X-Compute-Request-Id: req-492940ab-02bd-4179-bc38-7b75a38ed520 
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://controller:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}

DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/4d78674056b04c0bbcfc13946ac66c60/images/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}37f8b3b92be33dd173b121d99e804cd6a96f5486"
DEBUG (connectionpool:385) "GET /v2/4d78674056b04c0bbcfc13946ac66c60/images/detail HTTP/1.1" 500 214
DEBUG (session:215) RESP: [500] Date: Thu, 19 Nov 2015 00:43:37 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 214 X-Compute-Request-Id: req-7bf33e4a-ca3c-4eea-985f-088a99aa4bad 
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'glanceclient.exc.HTTPInternalServerError'>", "code": 500}}

DEBUG (shell:905) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-7bf33e4a-ca3c-4eea-985f-088a99aa4bad)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 903, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 830, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 1115, in do_image_list
    image_list = cs.images.list(limit=limit)
  File "/usr/lib/python2.7/dist-packages/novaclient/v2/images.py", line 74, in list
    return self._list('/images%s%s' % (detail, query), 'images')
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 72, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 93, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-7bf33e4a-ca3c-4eea-985f-088a99aa4bad)
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-7bf33e4a-ca3c-4eea-985f-088a99aa4bad)

Here are the logs from glance-registry.log

2015-11-18 20:01:13.633 1745 WARNING keystoneclient.auth.identity.generic.base [-] Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.
2015-11-18 20:01:13.634 1745 WARNING keystonemiddleware.auth_token [-] Authorization failed for token
2015-11-18 20:01:13.634 1745 INFO eventlet.wsgi.server [-] 127.0.0.1 - - [18/Nov/2015 20:01:13] "GET /images/detail?is_public=none&limit=20 HTTP/1.1" 401 206 0.002822
2015-11-18 20:01:13.638 1747 INFO eventlet.wsgi.server [-] 127.0.0.1 - - [18/Nov/2015 20:01:13] "GET /images/detail?is_public=none&limit=20 HTTP/1.1" 401 206 0.001853

Here are the logs from glance-api.log

2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client [req-82f0147f-6dde-497d-bf42-8e37d8125992 5bcadd71b059497fa0575094d96efd82 4d78674056b04c0bbcfc13946ac66c60 - - -] Registry client request GET /images/detail raised NotAuthenticated
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client Traceback (most recent call last):
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 121, in do_request
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client     **kwargs)
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 74, in wrapped
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client     return func(self, *args, **kwargs)
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 375, in do_request
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client     headers=copy.deepcopy(headers))
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 88, in wrapped
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client     return func(self, method, url, body, headers)
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 517, in _do_request
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client     raise exception.NotAuthenticated(res.read())
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client NotAuthenticated: Authentication required
2015-11-18 20:01:13.637 1779 ERROR glance.registry.client.v1.client 
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi [req-82f0147f-6dde-497d-bf42-8e37d8125992 5bcadd71b059497fa0575094d96efd82 4d78674056b04c0bbcfc13946ac66c60 - - -] Caught error: Authentication required
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi Traceback (most recent call last):
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 879, in __call__
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     request, **action_args)
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 907, in dispatch
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     return method(*args, **kwargs)
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 366, in detail
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     images = registry.get_images_detail(req.context, **params)
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/api.py", line 155, in get_images_detail
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     return c.get_images_detailed(**kwargs)
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 150, in get_images_detailed
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     res = self.do_request("GET", "/images/detail", params=params)
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 136, in do_request
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     'exc_name': exc_name})
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     six.reraise(self.type_, self.value, self.tb)
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 121, in do_request
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     **kwargs)
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 74, in wrapped
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     return func(self, *args, **kwargs)
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 375, in do_request
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     headers=copy.deepcopy(headers))
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 88, in wrapped
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     return func(self, method, url, body, headers)
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 517, in _do_request
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi     raise exception.NotAuthenticated(res.read())
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi NotAuthenticated: Authentication required
2015-11-18 20:01:13.638 1779 ERROR glance.common.wsgi 
2015-11-18 20:01:13.639 1779 INFO eventlet.wsgi.server [req-82f0147f-6dde-497d-bf42-8e37d8125992 5bcadd71b059497fa0575094d96efd82 4d78674056b04c0bbcfc13946ac66c60 - - -] 172.16.7.11 - - [18/Nov/2015 20:01:13] "GET /v1/images/detail?is_public=none&limit=20 HTTP/1.1" 500 454 0.030114

Based on the glance-registry logs i'm guessing Glance is unable to authenticate with Keystone due to version mismatch (?)

Looking forward to your responses. Thanks!