分享

nova --debug boot return http 500 error

luoyupeng 发表于 2016-6-4 11:40:30 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 10 15373
本帖最后由 luoyupeng 于 2016-6-4 14:44 编辑

[root@controller ~]# nova --debug boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=02d38662-1ce8-41d0-a723-be8adb1adc33 --security-group default --key-name admin-key test
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:393) "GET /v3 HTTP/1.1" 200 250
DEBUG (session:224) RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Connection: Keep-Alive Date: Sat, 04 Jun 2016 01:04:02 GMT Content-Type: application/json x-openstack-request-id: req-59e60f03-1a33-45e9-8637-a1698e5bf41b
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:171) Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG (connectionpool:393) "POST /v3/auth/tokens HTTP/1.1" 201 5326

DEBUG (session:195) REQ: curl -g -i -X GET http://controller:8774/v2/d6735e2ae3ac49a5ae9ad75012781283/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}321ba3d74e12d75debcf810502b04f370908242b"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:393) "GET /v2/d6735e2ae3ac49a5ae9ad75012781283/images HTTP/1.1" 200 508
DEBUG (session:224) RESP: [200] Date: Sat, 04 Jun 2016 01:04:03 GMT Connection: keep-alive Content-Type: application/json Content-Length: 508 X-Compute-Request-Id: req-fe3e5c5d-d216-4371-8b1b-ab8f972c11c6
RESP BODY: {"images": [{"id": "1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0", "links": [{"href": "http://controller:8774/v2/d6735e2ae3ac49a5ae9ad75012781283/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0", "rel": "self"}, {"href": "http://controller:8774/d6735e2ae3ac49a5ae9ad75012781283/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0", "rel": "bookmark"}, {"href": "http://controller:9292/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.4-x86_64"}]}
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:8774/v2/d6735e2ae3ac49a5ae9ad75012781283/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}321ba3d74e12d75debcf810502b04f370908242b"
DEBUG (connectionpool:393) "GET /v2/d6735e2ae3ac49a5ae9ad75012781283/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0 HTTP/1.1" 500 128
DEBUG (session:224) RESP:
DEBUG (shell:914) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2f6d17d-2e8b-4d04-8c46-ecf7e2e779dc)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 911, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 838, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 495, in do_boot
    boot_args, boot_kwargs = _boot(cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 142, in _boot
    image = _find_image(cs, args.image)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 1894, in _find_image
    return utils.find_resource(cs.images, image)
  File "/usr/lib/python2.7/site-packages/novaclient/utils.py", line 216, in find_resource
    return manager.find(**kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 196, in find
    matches = self.findall(**kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 258, in findall
    found.append(self.get(obj.id))
  File "/usr/lib/python2.7/site-packages/novaclient/v2/images.py", line 53, in get
    return self._get("/images/%s" % base.getid(image), "image")
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 156, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 96, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2f6d17d-2e8b-4d04-8c46-ecf7e2e779dc)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2f6d17d-2e8b-4d04-8c46-ecf7e2e779dc)

nova.conf
[DEFAULT]
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 192.168.0.2
vncserver_listen = 192.168.0.2
vncserver_proxyclient_address = 192.168.0.2
verbose = True
state_path = /home/nova
scheduler_default_filters = AllHostsFilter
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver



[database]
connection = mysql://nova:123456@controller/nova


[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = 123456


[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = 123456


[glance]
host = controller
[oslo_concurrency]
lock_path = /var/lib/nova/tmp


[neutron]
url = http://controller:9696
auth_strategy = keystone
admin_auth_url = http://controller:35357/v2.0
admin_tenant_name = service
admin_username = neutron
admin_password = 123456
service_metadata_proxy = True
metadata_proxy_shared_secret = 123456

glance-api.conf
[DEFAULT]
notification_driver = noop
verbose = True



[database]
connection = mysql://glance:123456@controller/glance


[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = glance
password = 123456


[paste_deploy]
flavor = keystone


[glance_store]
default_store = file
filesystem_store_datadir = /var/lib/glance/images/

glance-registry.conf
[DEFAULT]
notification_driver = noop
verbose = True



[database]
connection = mysql://glance:123456@controller/glance


[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = glance
password = 123456


[paste_deploy]
flavor = keystone

服务之类的都是正常的,,根据官方的kilo文档安装的。各位大侠帮分析一下看看。。跪谢了。。。

已有(10)人评论

跳转到指定楼层
luoyupeng 发表于 2016-6-4 11:42:47
报错信息在nova-api的日志里发现error信息:
2016-06-03 19:44:11.891 23128 ERROR nova.api.openstack [req-4a2d314a-9c04-4f90-9275-82c6e7f11b53 d3775f363652447d9162778e35ce0228 d6735e2ae3ac49a5ae9ad75012781283 - - -] Caught error: id
回复

使用道具 举报

easthome001 发表于 2016-6-4 14:15:27
luoyupeng 发表于 2016-6-4 11:42
报错信息在nova-api的日志里发现error信息:
2016-06-03 19:44:11.891 23128 ERROR nova.api.openstack [r ...

[database]
为什么datahbase有三个标签,而且还有重复的

回复

使用道具 举报

luoyupeng 发表于 2016-6-4 14:42:18
easthome001 发表于 2016-6-4 14:15
[database]
为什么datahbase有三个标签,而且还有重复的

那是三个配置文件,还有两个是glance-api.conf跟glance-registry.conf的。。
回复

使用道具 举报

easthome001 发表于 2016-6-4 16:22:39
nova api重装下
回复

使用道具 举报

luoyupeng 发表于 2016-6-6 18:36:16

系统也重装了,还是一样的报错,,晕,估计还是那配置的问题,,按官方文档走的,不知道什么地方出的问题。。
回复

使用道具 举报

luoyupeng 发表于 2016-6-8 12:49:33
问题已解决,是kilo的一个bug,需要修改http.py跟images.py两个源文件,然后重启glance-api,glance-registry两个服务即可
官方的修改链接如下:
https://review.openstack.org/#/c/244899/
希望对遇到此问题的朋友有所帮助。
回复

使用道具 举报

Hercwey 发表于 2016-6-22 12:02:12
本帖最后由 Hercwey 于 2016-6-22 12:04 编辑

兄弟,你帮了我大忙,真成功了。这个问题我卡了两周了,直到找你的方法。我在openstack社会发问,就没人能找到关键所在。包括google都找不到答案。想请教一下师兄@luoyupeng如何找到这个解决方法的?
回复

使用道具 举报

willgoon 发表于 2016-7-7 16:33:54
我也是碰到这个问题,我前前后后重装了七八遍。但是到了创建云主机的时候就出现这个http500的错误。请问具体怎么解决。
回复

使用道具 举报

willgoon 发表于 2016-7-7 17:22:08
Hercwey 发表于 2016-6-22 12:02
兄弟,你帮了我大忙,真成功了。这个问题我卡了两周了,直到找你的方法。我在openstack社会发问,就没人能 ...

我按楼主的提示,已经解决了。就是按照那个链接去你就会看见有imag.py和http.py两个文件的链接。那上面有告诉你怎么修改。
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条