分享

glance

mshj 发表于 2015-12-28 09:57:00 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 14 13048
atsky123 发表于 2015-12-28 18:30:40
mshj 发表于 2015-12-28 12:12
[root@localhost ~]# glance --debug image-list
curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H ...


[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.

上面的token串,这里不认识。
楼主的glance配置里的token,也即是用关于keystone的配置有问题

回复

使用道具 举报

atsky123 发表于 2015-12-28 18:32:05
建议先了解下token,及keystone
about云1 openstack--keystone入门视频
http://www.aboutyun.com/thread-12235-1-1.html



回复

使用道具 举报

mshj 发表于 2015-12-28 19:19:53
atsky123 发表于 2015-12-28 18:30
[root@localhost ~]# glance --debug image-list
curl -i -X GET -H 'Accept-Encoding: gzip, deflate ...

那我该怎么去修改呢,谢谢
回复

使用道具 举报

atsky123 发表于 2015-12-28 19:30:15
mshj 发表于 2015-12-28 19:19
那我该怎么去修改呢,谢谢

建议看这个视频,理论知识还是很重要的,而不是上来就部署,否则遇到很多问题。
about云12-openstack glance基础知识及视频下载
http://www.aboutyun.com/thread-12326-1-1.html



比如下面就是keystone的用户名和密码的验证
[keystone_authtoken]
...
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = glance
password = GLANCE_PASS

[paste_deploy]
...
flavor = keystone





回复

使用道具 举报

mshj 发表于 2015-12-28 19:32:24
atsky123 发表于 2015-12-28 19:30
建议看这个视频,理论知识还是很重要的,而不是上来就部署,否则遇到很多问题。
about云12-openstack gl ...

我也配置了,可就是没办法解决
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条