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)
收起