分享

openstack【juno】入门 【glance 篇】十二:glance安装配置验证及相关操作

pig2 发表于 2015-1-30 18:44:32 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 29 142416
s060403072 发表于 2015-5-22 08:29:40
本帖最后由 pig2 于 2015-5-22 08:32 编辑
xzh 发表于 2015-5-21 20:45
wget http://cdn.download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img
错误404  找不到这个文 ...


试试这个
[mw_shl_code=bash,true]wget -P /tmp/images http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img[/mw_shl_code]
回复

使用道具 举报

张小强 发表于 2015-5-25 16:57:45
2015-05-25 16:51:43.314 18293 DEBUG keystoneclient.session [-] REQ: curl -i -X GET http://controller0:35357/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/lib/python2.7/site-packages/keystoneclient/session.py:155
2015-05-25 16:51:43.315 18293 INFO urllib3.connectionpool [-] Starting new HTTP connection (3): controller0
2015-05-25 16:51:43.317 18293 WARNING keystonemiddleware.auth_token [-] Retrying on HTTP connection exception: Unable to establish connection to http://controller0:35357/
2015-05-25 16:51:45.317 18293 DEBUG keystoneclient.session [-] REQ: curl -i -X GET http://controller0:35357/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/lib/python2.7/site-packages/keystoneclient/session.py:155
2015-05-25 16:51:45.320 18293 INFO urllib3.connectionpool [-] Starting new HTTP connection (4): controller0
2015-05-25 16:51:45.321 18293 ERROR keystonemiddleware.auth_token [-] HTTP connection exception: Unable to establish connection to http://controller0:35357/
2015-05-25 16:51:45.330 18293 DEBUG keystonemiddleware.auth_token [-] Token validation failure. _validate_token /usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py:885
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token Traceback (most recent call last):
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py", line 877, in _validate_token
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token     retry)
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py", line 1396, in verify_token
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token     self._auth_version = self._choose_api_version()
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py", line 1468, in _choose_api_version
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token     versions_supported_by_server = self._get_supported_versions()
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py", line 1488, in _get_supported_versions
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token     response, data = self._json_request('GET', '/', authenticated=False)
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py", line 1558, in _json_request
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token     response = self._http_request(method, path, **kwargs)
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py", line 1537, in _http_request
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token     raise NetworkError('Unable to communicate with keystone')
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token NetworkError: Unable to communicate with keystone
2015-05-25 16:51:45.330 18293 TRACE keystonemiddleware.auth_token
2015-05-25 16:51:45.333 18293 WARNING keystonemiddleware.auth_token [-] Authorization failed for token
2015-05-25 16:51:45.334 18293 INFO keystonemiddleware.auth_token [-] Invalid user token - deferring reject downstream
2015-05-25 16:51:45.334 18293 DEBUG keystonemiddleware.auth_token [-] Authenticating service token __call__ /usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py:727


为什么没人遇到这个问题呢??

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

无解了.... 求大家帮忙。。。
回复

使用道具 举报

xzh 发表于 2015-5-25 17:14:32
s060403072 发表于 2015-5-22 08:29
试试这个
[mw_shl_code=bash,true]wget -P /tmp/images http://download.cirros-cloud.net/0.3.3/cir ...

知道了,已经解决了 谢谢。

回复

使用道具 举报

xzh 发表于 2015-5-25 17:15:26
s060403072 发表于 2015-5-22 08:29
试试这个
[mw_shl_code=bash,true]wget -P /tmp/images http://download.cirros-cloud.net/0.3.3/cir ...

知道了,已经解决了 谢谢。
回复

使用道具 举报

张小强 发表于 2015-5-25 21:55:13
xzh 发表于 2015-5-25 17:15
知道了,已经解决了 谢谢。

请问你有没有遇到 我这个问题呢?

点评

认证出错了,检查下keystone及token  发表于 2015-5-26 14:27
回复

使用道具 举报

wangzy208 发表于 2015-6-20 01:45:22
贪吃的奶酪 发表于 2015-4-30 20:40
不用了,是镜像问题,已经搞好了,谢谢了.

你是怎么解决的,我也遇到这个问题。

点评

他的是镜像问题  发表于 2015-6-20 03:28
回复

使用道具 举报

hemaojian 发表于 2015-9-9 16:30:27
# glance image-list
Request returned failure status 401.
Invalid OpenStack Identity credentials.
我可以登入glance数据库啊,怎么回事?
回复

使用道具 举报

hemaojian 发表于 2015-9-9 16:31:28
张小强 发表于 2015-5-25 21:55
请问你有没有遇到 我这个问题呢?

请问你的这问题解决了吗,我也遇到这个问题了
回复

使用道具 举报

arsenduan 发表于 2015-9-9 16:33:50
hemaojian 发表于 2015-9-9 16:31
请问你的这问题解决了吗,我也遇到这个问题了

他这个token出问题了
回复

使用道具 举报

hemaojian 发表于 2015-9-9 17:35:19
arsenduan 发表于 2015-9-9 16:33
他这个token出问题了

怎么解决啊?

回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条