[Openstack] Invalid OpenStack Identity credentials

ttjiang jt628910 at 163.com
Tue Jul 1 06:46:41 UTC 2014


I think my glance-api.conf and glance-registry.conf  are right 

[keystone_authtoken]
auth_host = 10.1.82.40
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = glance
auth_uri = http://10.1.82.40:5000

[paste_deploy]
flavor = keystone

debug  info 
curl -i -X GET -H 'X-Auth-Token: b15d34f87160452e8e8bcc7a1d851c43' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://10.1.82.40:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20

HTTP/1.1 401 Unauthorized
date: Mon, 30 Jun 2014 22:05:16 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.





ttjiang

From: Robert van Leeuwen
Date: 2014-07-01 14:41
To: ttjiang; openstack at lists.openstack.org
Subject: RE: [Openstack] Invalid OpenStack Identity credentials
> run "glance image-list", It give me output  like this
> Request returned failure status
> Invalid OpenStack Identity credentials.

Has the glance-api.conf and glance-registry.conf the correct keystone setup?

Setting a service to debug and then looking at the logs usually also gives a good indication on whats wrong.

Cheers,
Robert van Leeuwen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140701/ce9b4432/attachment.html>


More information about the Openstack mailing list