分享

求指导,在执行nova image-list时出现HTTP500错误

oniji 发表于 2016-4-20 16:21:08 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 8 19741
按照官方安装指导进行到nova验证时,执行nova image-list就出现来HTTP500.研究了一下午,还是没有解决

root@controller:/home/controller# nova --debug image-list
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v3 HTTP/1.1" 200 250
DEBUG (session:215) RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.12 (Ubuntu) Connection: Keep-Alive Date: Wed, 20 Apr 2016 08:13:07 GMT x-openstack-request-id: req-46fbbcbc-d1ff-45d9-b28a-9ed77d743499 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://controller:35357/v3/", "rel": "self"}]}}

DEBUG (base:188) Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG (connectionpool:385) "POST /v3/auth/tokens HTTP/1.1" 201 2801
DEBUG (session:198) REQ: curl -g -i -X GET http://controller:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}57c18c6a75985df5879c1fbeb7e4ba304d9221ad"
INFO (connectionpool:205) Starting new HTTP connection (1): controller
DEBUG (connectionpool:385) "GET /v2/ HTTP/1.1" 200 375
DEBUG (session:215) RESP: [200] Date: Wed, 20 Apr 2016 08:13:08 GMT Connection: keep-alive Content-Type: application/json Content-Length: 375 X-Compute-Request-Id: req-8ae05c77-923e-4beb-9e66-812ea7aabe34
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://controller: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://controller:8774/v2/1df4d1c370d14f79822ee1b7136efe17/images/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}57c18c6a75985df5879c1fbeb7e4ba304d9221ad"
DEBUG (connectionpool:385) "GET /v2/1df4d1c370d14f79822ee1b7136efe17/images/detail HTTP/1.1" 500 214
DEBUG (session:215) RESP: [500] Date: Wed, 20 Apr 2016 08:14:49 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 214 X-Compute-Request-Id: req-6e30e00e-97bc-43d7-b064-b1b776b9ed84
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-6e30e00e-97bc-43d7-b064-b1b776b9ed84)
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-6e30e00e-97bc-43d7-b064-b1b776b9ed84)
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-6e30e00e-97bc-43d7-b064-b1b776b9ed84)


已有(8)人评论

跳转到指定楼层
when30 发表于 2016-4-20 16:33:42
这里面没有太多的错误日志
先看看nova的日志,然后在看看glance的日志。
这两个错误日志都贴出来看看。
回复

使用道具 举报

oniji 发表于 2016-4-20 16:39:38
when30 发表于 2016-4-20 16:33
这里面没有太多的错误日志
先看看nova的日志,然后在看看glance的日志。
这两个错误日志都贴出来看看。

这是glance-api的日志
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client [req-76d89198-4243-4426-92f5-3df40171b365 12bcb365c48d4dd68aa2708c754c2f2f 1df4d1c370d14f79822ee1b7136efe17 - - -] Registry client request GET /images/detail raised ServerError
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client Traceback (most recent call last):
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 121, in do_request
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client     **kwargs)
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 71, in wrapped
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client     return func(self, *args, **kwargs)
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 375, in do_request
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client     headers=copy.deepcopy(headers))
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 88, in wrapped
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client     return func(self, method, url, body, headers)
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 532, in _do_request
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client     raise exception.ServerError()
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client ServerError: The request returned 500 Internal Server Error.
2016-04-20 16:14:49.349 12519 ERROR glance.registry.client.v1.client
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi [req-76d89198-4243-4426-92f5-3df40171b365 12bcb365c48d4dd68aa2708c754c2f2f 1df4d1c370d14f79822ee1b7136efe17 - - -] Caught error: The request returned 500 Internal Server Error.
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi Traceback (most recent call last):
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 879, in __call__
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     request, **action_args)
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 907, in dispatch
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     return method(*args, **kwargs)
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 367, in detail
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     images = registry.get_images_detail(req.context, **params)
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/api.py", line 155, in get_images_detail
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     return c.get_images_detailed(**kwargs)
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 150, in get_images_detailed
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     res = self.do_request("GET", "/images/detail", params=params)
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 136, in do_request
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     'exc_name': exc_name})
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     six.reraise(self.type_, self.value, self.tb)
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 121, in do_request
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     **kwargs)
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 71, in wrapped
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     return func(self, *args, **kwargs)
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 375, in do_request
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     headers=copy.deepcopy(headers))
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 88, in wrapped
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     return func(self, method, url, body, headers)
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 532, in _do_request
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi     raise exception.ServerError()
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi ServerError: The request returned 500 Internal Server Error.
2016-04-20 16:14:49.352 12519 ERROR glance.common.wsgi
2016-04-20 16:14:49.356 12519 INFO eventlet.wsgi.server [req-76d89198-4243-4426-92f5-3df40171b365 12bcb365c48d4dd68aa2708c754c2f2f 1df4d1c370d14f79822ee1b7136efe17 - - -] 127.0.0.1 - - [20/Apr/2016 16:14:49] "GET /v1/images/detail?is_public=none&limit=20 HTTP/1.1" 500 454 100.420195

回复

使用道具 举报

oniji 发表于 2016-4-20 16:40:44
when30 发表于 2016-4-20 16:33
这里面没有太多的错误日志
先看看nova的日志,然后在看看glance的日志。
这两个错误日志都贴出来看看。

nova-api的日志

2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions [req-6e30e00e-97bc-43d7-b064-b1b776b9ed84 12bcb365c48d4dd68aa2708c754c2f2f 1df4d1c370d14f79822ee1b7136efe17 - - -] Unexpected exception in API method
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/images.py", line 145, in detail
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     **page_params)
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 68, in get_all
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     return session.detail(context, **kwargs)
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 284, in detail
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     for image in images:
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 254, in list
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     for image in paginate(params, return_request_id):
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 238, in paginate
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     images, resp = self._list(url, "images")
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 63, in _list
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     resp, body = self.client.get(url)
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 280, in get
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     return self._request('GET', url, **kwargs)
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 272, in _request
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     resp, body_iter = self._handle_response(resp)
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 93, in _handle_response
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions     raise exc.from_response(resp, resp.content)
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
2016-04-20 16:14:49.357 18839 ERROR nova.api.openstack.extensions
2016-04-20 16:14:49.360 18839 INFO nova.api.openstack.wsgi [req-6e30e00e-97bc-43d7-b064-b1b776b9ed84 12bcb365c48d4dd68aa2708c754c2f2f 1df4d1c370d14f79822ee1b7136efe17 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'>
2016-04-20 16:14:49.362 18839 INFO nova.osapi_compute.wsgi.server [req-6e30e00e-97bc-43d7-b064-b1b776b9ed84 12bcb365c48d4dd68aa2708c754c2f2f 1df4d1c370d14f79822ee1b7136efe17 - - -] 127.0.0.1 "GET /v2/1df4d1c370d14f79822ee1b7136efe17/images/detail HTTP/1.1" status: 500 len: 445 time: 100.4415572

回复

使用道具 举报

Alkaloid0515 发表于 2016-4-20 17:09:35
glance配置的问题,楼主肯定粗心了。
各个组件都报错。
在安装完一个组件的时候,都要检测是否安装正确。
glance.registry里面肯定也有详细错误
回复

使用道具 举报

bioger_hit 发表于 2016-4-20 17:38:43
看样子,不是一两个地方错误。控制节点,可能也有错误。
建议按照一些标准文档来安装。否则错误太多,根本无从下手。

回复

使用道具 举报

oniji 发表于 2016-4-21 10:28:17
现在又在重新安装了,为什么MariaDB安装完成,执行了mysql_secure_installation,设置了数据库root密码,进入数据库的时候还是可以不用输密码呢
回复

使用道具 举报

atsky123 发表于 2016-4-21 11:05:47
oniji 发表于 2016-4-21 10:28
现在又在重新安装了,为什么MariaDB安装完成,执行了mysql_secure_installation,设置了数据库root密码,进 ...

设置进入就需要密码的。楼主肯定是客观上还没有正确认识。

回复

使用道具 举报

atsky123 发表于 2016-4-21 11:07:23
这里有about云零基础入门文档和视频,建议看看,相信会有帮助的
about云openstack入门宝典第四版_kilo版
http://www.aboutyun.com/forum.php?mod=viewthread&tid=14650


相关视频,不过时淘宝的
https://item.taobao.com/item.htm ... amp;id=522548227466
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条