Revision history [back]

click to hide/show revision 1
initial version

401 on "glance image-list"

Hello all,

When running 'glance image-list', I get a 401. This issue only appears about 48 hours after my cloud is up and running.

[root@controller ~]# glance image-list
Request returned failure status.
Invalid OpenStack Identity credentials.

With debug:

[root@controller ~]# glance --debug image-list
curl -i -X GET -H 'X-Auth-Token: <stripped token for sake of readability>' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://192.168.1.100:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20

HTTP/1.1 401 Unauthorized
date: Sat, 18 May 2013 06:38:38 GMT
content-length: 253
content-type: text/plain; charset=UTF-8

401 Unauthorized

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.



Request returned failure status.
Invalid OpenStack Identity credentials.

With debug enabled in /etc/glance/glance.conf, the log shows:

[root@controller ~]# tail /var/log/glance/api.log
2013-05-18 01:38:38.541 16020 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:71
2013-05-18 01:38:38.541 16020 DEBUG glance.api.middleware.version_negotiation [-] new uri /v1/images/detail process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:72
2013-05-18 01:41:32.206 16020 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET //v1/images/detail Accept:  process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:46
2013-05-18 01:41:32.207 16020 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:59
2013-05-18 01:41:32.207 16020 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:71
2013-05-18 01:41:32.207 16020 DEBUG glance.api.middleware.version_negotiation [-] new uri /v1/images/detail process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:72
2013-05-18 01:41:32.371 16020 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET //v1/images/detail Accept:  process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:46
2013-05-18 01:41:32.372 16020 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:59
2013-05-18 01:41:32.372 16020 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:71
2013-05-18 01:41:32.372 16020 DEBUG glance.api.middleware.version_negotiation [-] new uri /v1/images/detail process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:72

Does anyone have any ideas why this is happening after 48 hours?

Thanks!

401 on "glance image-list"

Hello all,

When running 'glance image-list', I get a 401. This issue only appears about 48 hours after my cloud is up and running.

[root@controller ~]# glance image-list
Request returned failure status.
Invalid OpenStack Identity credentials.

With debug:

[root@controller ~]# glance --debug image-list
curl -i -X GET -H 'X-Auth-Token: <stripped token for sake of readability>' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://192.168.1.100:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20

HTTP/1.1 401 Unauthorized
date: Sat, 18 May 2013 06:38:38 GMT
content-length: 253
content-type: text/plain; charset=UTF-8

401 Unauthorized

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.



Request returned failure status.
Invalid OpenStack Identity credentials.

With debug enabled in /etc/glance/glance.conf, the log shows:

[root@controller ~]# tail /var/log/glance/api.log
2013-05-18 01:38:38.541 16020 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:71
2013-05-18 01:38:38.541 16020 DEBUG glance.api.middleware.version_negotiation [-] new uri /v1/images/detail process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:72
2013-05-18 01:41:32.206 16020 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET //v1/images/detail Accept:  process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:46
2013-05-18 01:41:32.207 16020 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:59
2013-05-18 01:41:32.207 16020 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:71
2013-05-18 01:41:32.207 16020 DEBUG glance.api.middleware.version_negotiation [-] new uri /v1/images/detail process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:72
2013-05-18 01:41:32.371 16020 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET //v1/images/detail Accept:  process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:46
2013-05-18 01:41:32.372 16020 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:59
2013-05-18 01:41:32.372 16020 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:71
2013-05-18 01:41:32.372 16020 DEBUG glance.api.middleware.version_negotiation [-] new uri /v1/images/detail process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:72

Does anyone have any ideas why this is happening after 48 hours?

Thanks!

Edit: I know my environment variables aren't the problem as other commands ("nova flavor-list", "nova hypervisor-list", etc) all work.