openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #18086
[Glance] "glance index" failing with "Request returned failure status"
-
To:
"openstack@xxxxxxxxxxxxxxxxxxx" <openstack@xxxxxxxxxxxxxxxxxxx>
-
From:
Ahmed Al-Mehdi <ahmed@xxxxxxxxxx>
-
Date:
Wed, 31 Oct 2012 18:46:32 -0500
-
Accept-language:
en-US
-
Acceptlanguage:
en-US
-
Thread-index:
Ac23wfVJzofQJxtpQyeBTZHANx3ckQ==
-
Thread-topic:
[Openstack][Glance] "glance index" failing with "Request returned failure status"
-
User-agent:
Microsoft-MacOutlook/14.2.4.120824
Hello,
I followed the steps in "OpenStack Install and Deploy Manual – Ubuntu". After following the steps to install Glance, I issued the command "glance index" to test my setup. I am getting an error. Can someone please help.
root@bodega:~/ahmed/temp# glance index
ID Name Disk Format Container Format Size
------------------------------------ ------------------------------ -------------------- -------------------- --------------
Request returned failure status.
None
HTTPInternalServerError (HTTP 500)
root@bodega:~/ahmed/temp#
/var/log/api.log:
2012-10-31 16:16:49 4140 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET /v1/images/detail Accept: process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:45
2012-10-31 16:16:49 4140 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:58
2012-10-31 16:16:49 4140 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:70
2012-10-31 16:16:49 4140 DEBUG glance.api.middleware.version_negotiation [-] new uri /v1/images/detail process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:71
2012-10-31 16:16:50 DEBUG glance.api.policy [0946431c-90d7-4063-8593-8d02ea89513a ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] Loaded policy rules: {u'default': [], u'manage_image_cache': [[u'role:admin']]} load_rules /usr/lib/python2.7/dist-packages/glance/api/policy.py:63
2012-10-31 16:16:50 DEBUG glance.common.client [0946431c-90d7-4063-8593-8d02ea89513a ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] Constructed URL: http://0.0.0.0:9191/images/detail?limit=10 _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:464
2012-10-31 16:16:50 DEBUG glance.common.client [0946431c-90d7-4063-8593-8d02ea89513a ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] Constructed URL: http://0.0.0.0:9191/images/detail?limit=10 _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:464
2012-10-31 16:16:50 ERROR glance.registry.client [0946431c-90d7-4063-8593-8d02ea89513a ce016bb05df949ebbafcc7c165359d7c ce1e819636744dc680fa5515f6475e87] Registry request GET /images/detail Exception
2012-10-31 16:16:50 4140 TRACE glance.registry.client Traceback (most recent call last):
2012-10-31 16:16:50 4140 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 89, in do_request
2012-10-31 16:16:50 4140 TRACE glance.registry.client action, **kwargs)
2012-10-31 16:16:50 4140 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 66, in wrapped
2012-10-31 16:16:50 4140 TRACE glance.registry.client return func(self, *args, **kwargs)
2012-10-31 16:16:50 4140 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 444, in do_request
2012-10-31 16:16:50 4140 TRACE glance.registry.client headers=headers)
2012-10-31 16:16:50 4140 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 80, in wrapped
2012-10-31 16:16:50 4140 TRACE glance.registry.client return func(self, method, url, body, headers)
2012-10-31 16:16:50 4140 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 566, in _do_request
2012-10-31 16:16:50 4140 TRACE glance.registry.client raise exception.NotAuthenticated(res.read())
2012-10-31 16:16:50 4140 TRACE glance.registry.client NotAuthenticated: 401 Unauthorized
2012-10-31 16:16:50 4140 TRACE glance.registry.client
2012-10-31 16:16:50 4140 TRACE glance.registry.client This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
2012-10-31 16:16:50 4140 TRACE glance.registry.client
2012-10-31 16:16:50 4140 TRACE glance.registry.client Authentication required
2012-10-31 16:16:50 4140 TRACE glance.registry.client
/var/log/registry.log:
2012-10-31 16:16:50 4120 WARNING keystone.middleware.auth_token [-] Unexpected response from keystone service: {u'error': {u'message': u'Invalid tenant', u'code': 401, u'title': u'Not Authorized'}}
2012-10-31 16:16:50 4120 WARNING keystone.middleware.auth_token [-] Authorization failed for token f9b08f547be24e77a903bcdfa11ad1ac
2012-10-31 16:16:50 4120 INFO keystone.middleware.auth_token [-] Invalid user token - rejecting request
2012-10-31 16:16:50 4120 WARNING keystone.middleware.auth_token [-] Unable to find authentication token in headers: {'SCRIPT_NAME': '', 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/images/detail', 'SERVER_PROTOCOL': 'HTTP/1.0', 'QUERY_STRING': 'limit=10', 'eventlet.posthooks': [], 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'eventlet.input': <eventlet.wsgi.Input object at 0x27c4610>, 'wsgi.url_scheme': 'http', 'SERVER_PORT': '9191', 'wsgi.input': <eventlet.wsgi.Input object at 0x27c4610>, 'HTTP_HOST': '0.0.0.0:9191', 'wsgi.multithread': True, 'wsgi.version': (1, 0), 'RAW_PATH_INFO': '/images/detail', 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f2200192270>, 'wsgi.multiprocess': False, 'CONTENT_TYPE': 'text/plain', 'HTTP_ACCEPT_ENCODING': 'identity'}
2012-10-31 16:16:50 4120 INFO keystone.middleware.auth_token [-] Invalid user token - rejecting request
Thank you,
Ahmed.
Follow ups