glance获取镜像列表失败

glance镜像操作失败,似乎是keystone权限部分出错,恳请指点。执行glance --debug image-list情况如下:[root@controller ~]# glance --debug image-listcurl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Conn...显示全部
glance镜像操作失败,似乎是keystone权限部分出错,恳请指点。
执行glance --debug image-list情况如下:
[root@controller ~]# 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: ***' -H 'Content-Type: application/octet-stream' http://controller:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20
Request returned failure status 401.
Invalid OpenStack Identity credentials.

执行nova --debug image-list情况如下:
DEBUG (shell:802) 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. (HTTP 401) (Request-ID: req-abf3db3b-8842-4cc8-b41b-3c1cafc1b99d)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 799, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 729, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/shell.py", line 941, in do_image_list
    image_list = cs.images.list(limit=limit)
  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/images.py", line 69, in list
    return self._list('/images%s%s' % (detail, query), 'images')
  File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 67, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 482, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 474, in _cs_request
    raise e
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. (HTTP 401) (Request-ID: req-abf3db3b-8842-4cc8-b41b-3c1cafc1b99d)
ERROR (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. (HTTP 401) (Request-ID: req-abf3db3b-8842-4cc8-b41b-3c1cafc1b99d)收起
参与12

查看其它 9 个回答bybreak的回答

bybreakbybreak售前技术支持郑州金冠
console中设置登陆用户和密码没设置,或者是设置错误了吧
系统集成 · 2015-02-03
浏览7252

回答者

bybreak
售前技术支持郑州金冠

bybreak 最近回答过的问题

回答状态

  • 发布时间:2015-02-03
  • 关注会员:2 人
  • 回答浏览:7252
  • X社区推广