分享

glance

mshj 发表于 2015-12-28 09:57:00 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 14 13041
大家好:
     我在centos 7  搭建openstack  。
     当我查看glance image-list 时 ,出现了一下错误:

Invalid OpenStack Identity credentials.

我该怎么解决啊

谢谢各位。

已有(14)人评论

跳转到指定楼层
mshj 发表于 2015-12-28 12:01:37
keystone  user-list  等都能正常显示啊。

具体怎么出错了,

可以说的详细点吗?

谢谢
回复

使用道具 举报

goldtimes 发表于 2015-12-28 12:08:28
mshj 发表于 2015-12-28 12:01
keystone  user-list  等都能正常显示啊。

具体怎么出错了,

上图,先确保user-list正常,如果这个正常,说明glance配置的关于认证方面的有问题。还有就是看日志,因为这些都是猜测
回复

使用道具 举报

mshj 发表于 2015-12-28 12:10:23
那我应该给你提供什么信息?
回复

使用道具 举报

mshj 发表于 2015-12-28 12:12:30
[root@localhost ~]# glance --debug image-list
curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}79657fd265c0dafa092f5dfe48245708d6672f23' -H 'Content-Type: application/octet-stream' http://localhost:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20
Request returned failure status 401.
Invalid OpenStack Identity credentials.
[root@localhost ~]#
回复

使用道具 举报

mshj 发表于 2015-12-28 12:13:47
goldtimes 发表于 2015-12-28 12:08
上图,先确保user-list正常,如果这个正常,说明glance配置的关于认证方面的有问题。还有就是看日志,因 ...

[root@localhost ~]# glance --debug image-list
curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}79657fd265c0dafa092f5dfe48245708d6672f23' -H 'Content-Type: application/octet-stream' http://localhost:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20
Request returned failure status 401.
Invalid OpenStack Identity credentials.
[root@localhost ~]#


回复

使用道具 举报

goldtimes 发表于 2015-12-28 13:27:18
mshj 发表于 2015-12-28 12:10
那我应该给你提供什么信息?

user-list,错误日志
回复

使用道具 举报

mshj 发表于 2015-12-28 14:56:41
goldtimes 发表于 2015-12-28 13:27
user-list,错误日志

[root@localhost ~]# keystone --debug user-list
DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://localhost:35357/v2.0/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1447
DEBUG:keystoneclient.session:REQ: curl -i -X GET http://localhost:35357/v2.0/users -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: TOKEN_REDACTED"
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:requests.packages.urllib3.connectionpool:"GET /v2.0/users HTTP/1.1" 200 560
DEBUG:keystoneclient.session:RESP: [200] {'date': 'Mon, 28 Dec 2015 06:54:51 GMT', 'vary': 'X-Auth-Token', 'content-length': '560', 'content-type': 'application/json', 'connection': 'keep-alive'}
RESP BODY: {"users": [{"username": "glance", "name": "glance", "enabled": true, "email": "admin@test.com", "id": "a17c43ef5df448248cf4df35785caee5"}, {"username": "admin", "name": "admin", "enabled": true, "email": "admin@test.com", "id": "bfd740871d2f48dc98ae8ca86f283f71"}, {"username": "nova", "name": "nova", "enabled": true, "email": "nova@test.com", "id": "d17a5ef9f3b743debdadec5c86582da2"}, {"username": "demo", "name": "demo", "id": "e231d10cfbc44e5391fa037569fb1d1c", "enabled": true, "email": "admin@test.com", "tenantId": "1d16357c1c924f809413a4f042aa3472"}]}

+----------------------------------+--------+---------+----------------+
|                id                |  name  | enabled |     email      |
+----------------------------------+--------+---------+----------------+
| bfd740871d2f48dc98ae8ca86f283f71 | admin  |   True  | admin@test.com |
| e231d10cfbc44e5391fa037569fb1d1c |  demo  |   True  | admin@test.com |
| a17c43ef5df448248cf4df35785caee5 | glance |   True  | admin@test.com |
| d17a5ef9f3b743debdadec5c86582da2 |  nova  |   True  | nova@test.com  |
+----------------------------------+--------+---------+----------------+
[root@localhost ~]#


回复

使用道具 举报

mshj 发表于 2015-12-28 14:59:06
[root@localhost ~]# keystone --debug user-list
DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://localhost:35357/v2.0/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1447
DEBUG:keystoneclient.session:REQ: curl -i -X GET http://localhost:35357/v2.0/users -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: TOKEN_REDACTED"
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost
DEBUG:requests.packages.urllib3.connectionpool:"GET /v2.0/users HTTP/1.1" 200 560
DEBUG:keystoneclient.session:RESP: [200] {'date': 'Mon, 28 Dec 2015 06:54:51 GMT', 'vary': 'X-Auth-Token', 'content-length': '560', 'content-type': 'application/json', 'connection': 'keep-alive'}
RESP BODY: {"users": [{"username": "glance", "name": "glance", "enabled": true, "email": "admin@test.com", "id": "a17c43ef5df448248cf4df35785caee5"}, {"username": "admin", "name": "admin", "enabled": true, "email": "admin@test.com", "id": "bfd740871d2f48dc98ae8ca86f283f71"}, {"username": "nova", "name": "nova", "enabled": true, "email": "nova@test.com", "id": "d17a5ef9f3b743debdadec5c86582da2"}, {"username": "demo", "name": "demo", "id": "e231d10cfbc44e5391fa037569fb1d1c", "enabled": true, "email": "admin@test.com", "tenantId": "1d16357c1c924f809413a4f042aa3472"}]}

+----------------------------------+--------+---------+----------------+
|                id                |  name  | enabled |     email      |
+----------------------------------+--------+---------+----------------+
| bfd740871d2f48dc98ae8ca86f283f71 | admin  |   True  | admin@test.com |
| e231d10cfbc44e5391fa037569fb1d1c |  demo  |   True  | admin@test.com |
| a17c43ef5df448248cf4df35785caee5 | glance |   True  | admin@test.com |
| d17a5ef9f3b743debdadec5c86582da2 |  nova  |   True  | nova@test.com  |
+----------------------------------+--------+---------+----------------+
[root@localhost ~]#
回复

使用道具 举报

12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条