nova --debug image-list
DEBUG (session:198) REQ: curl -g -i -X GET http://liberty-aio:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:205) Starting new HTTP connection (1): liberty-aio
DEBUG (connectionpool:385) "GET /v3 HTTP/1.1" 200 251
DEBUG (session:215) RESP: [200] Content-Length: 251 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Fri, 29 Jan 2016 08:24:37 GMT x-openstack-request-id: req-3a756bc8-e14f-45fb-a9c2-69673b22ee36 Content-Type: application/json X-Distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://liberty-aio:35357/v3/", "rel": "self"}]}}
DEBUG (base:188) Making authentication request to http://liberty-aio:35357/v3/auth/tokens
DEBUG (connectionpool:385) "POST /v3/auth/tokens HTTP/1.1" 201 2266
DEBUG (session:198) REQ: curl -g -i -X GET http://liberty-aio:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ad3b5ff2c641645731b0c899308648239fbcb5e6"
INFO (connectionpool:205) Starting new HTTP connection (1): liberty-aio
DEBUG (connectionpool:385) "GET /v2/ HTTP/1.1" 200 376
DEBUG (session:215) RESP: [200] Date: Fri, 29 Jan 2016 08:24:37 GMT Connection: keep-alive Content-Type: application/json Content-Length: 376 X-Compute-Request-Id: req-b549f38e-2b68-4b04-8ab9-d4634fac981d
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://liberty-aio:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}
DEBUG (session:198) REQ: curl -g -i -X GET http://liberty-aio:8774/v2/54cc049ae72445c2b903a19ccda0857b/images/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ad3b5ff2c641645731b0c899308648239fbcb5e6"
DEBUG (connectionpool:385) "GET /v2/54cc049ae72445c2b903a19ccda0857b/images/detail HTTP/1.1" 500 214
DEBUG (session:215) RESP: [500] Date: Fri, 29 Jan 2016 08:28:46 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 214 X-Compute-Request-Id: req-fa881fc0-a933-4c57-a028-af2c379b181d
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'glanceclient.exc.HTTPInternalServerError'>", "code": 500}}
DEBUG (shell:905) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-fa881fc0-a933-4c57-a028-af2c379b181d)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 903, in main
OpenStackComputeShell().main(argv)
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 830, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 1115, in do_image_list
image_list = cs.images.list(limit=limit)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/images.py", line 74, in list
return self._list('/images%s%s' % (detail, query), 'images')
File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 72, in _list
_resp, body = self.api.client.get(url)
File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in get
return self.request(url, 'GET', **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 93, in request
raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-fa881fc0-a933-4c57-a028-af2c379b181d)
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-fa881fc0-a933-4c57-a028-af2c379b181d)
nova --debug image-list
原创mb61b9f9821005c ©著作权
©著作权归作者所有:来自51CTO博客作者mb61b9f9821005c的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:Python
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Openstack服务查看镜像报错 nova image-list
nova image-list 报错应当检查/etc/glance/glance-api.conf 和 /etc/glance/glance-registry.conf中的[database] 下的链接是
openstack glance nova image mysql -
Openstack在controller节点 nova image-list HTTP500
问题如下:翻译大意是:未知名的API错误,好的,我们开始查看错误日志,先看nova-api发现是glance部分错误,回去检查 /etc/
nova image glance error 配置文件 -
openstack nova 开发 CURL list 记录
openstack nova 开发 CURL list 记录
nova api curl token -
OpenStack nova内存 openstack nova list
1. 概要这篇文章我们主要分析novalist命令的代码流程,其代码流程大致为:1.从keystone获得token。2. 根据获得的token去调用nova-api接口查询VM的列表。其中获得token之前需要查询keystone的版本信息,且所有的这些查询操作都是通过WSGI通信方式进行处理的。2. 公共代码流程nova命令的代码入口如下,[root@jun ~]# cat /usr/bin/
OpenStack nova内存 openstack novaclient keystoneclient nova-api