分享

求援助:创建实例时报错,急!!!

jp58925465 发表于 2015-11-17 16:44:35 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 49598
root@controller:/var/log/nova#
root@controller:/var/log/nova# nova boot --flavor m1.tiny --image cirros --nic net-id=025dca43-9c5f-4443-907d-da4c35e15e68   --security-group default --key-name demo-key demo-instance1
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-d22a9c09-1f24-4fbd-8a0b-e87ee5aa389a)
root@controller:/var/log/nova#
------------------------------------------------------------------------------------------------------------------------
#log
root@controller:/var/log/nova# tail -10 nova-api.log
2015-11-16 21:18:49.526 1983 ERROR nova.api.openstack.extensions     return self.request(url, 'POST', **kwargs)
2015-11-16 21:18:49.526 1983 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
2015-11-16 21:18:49.526 1983 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2015-11-16 21:18:49.526 1983 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 401, in request
2015-11-16 21:18:49.526 1983 ERROR nova.api.openstack.extensions     raise exceptions.from_response(resp, method, url)
2015-11-16 21:18:49.526 1983 ERROR nova.api.openstack.extensions BadRequest: Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-a8938de6-18f0-4dd9-b2ff-fd786a01f9d2)
2015-11-16 21:18:49.526 1983 ERROR nova.api.openstack.extensions
2015-11-16 21:18:49.528 1983 INFO nova.api.openstack.wsgi [req-d22a9c09-1f24-4fbd-8a0b-e87ee5aa389a 5163119f6fc249be9cac800b84ddbfe3 109f4c851f3f43c68c4becd170991e27 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'>
2015-11-16 21:18:49.529 1983 INFO nova.osapi_compute.wsgi.server [req-d22a9c09-1f24-4fbd-8a0b-e87ee5aa389a 5163119f6fc249be9cac800b84ddbfe3 109f4c851f3f43c68c4becd170991e27 - - -] 10.0.0.11 "POST /v2/109f4c851f3f43c68c4becd170991e27/servers HTTP/1.1" status: 500 len: 441 time: 0.3347919



已有(4)人评论

跳转到指定楼层
Alkaloid0515 发表于 2015-11-17 19:49:06
keystone组件未安装好,检查相关服务是否正常
回复

使用道具 举报

jp58925465 发表于 2015-11-18 10:45:25
Alkaloid0515 发表于 2015-11-17 19:49
keystone组件未安装好,检查相关服务是否正常

非常感谢,我看了一下keystone.log,发现Address already in use 问题,然后测试一下,地址没问题啊,还请赐教;
-----------------------------------------------------------------------------------------------------
root@controller:/var/log/keystone# service keystone restart
keystone stop/waiting
keystone start/running, process 3374
root@controller:/var/log/keystone# ps -ef | grep -i 3374
root      3421  2687  0 17:18 pts/1    00:00:00 grep --color=auto -i 3374
root@controller:/var/log/keystone# tail -10 keystone.log
2015-11-17 17:18:49.278 3431 ERROR keystone   File "/usr/lib/python2.7/dist-packages/keystone/server/eventlet.py", line 54, in launch_with
2015-11-17 17:18:49.278 3431 ERROR keystone     self.server.listen()
2015-11-17 17:18:49.278 3431 ERROR keystone   File "/usr/lib/python2.7/dist-packages/keystone/common/environment/eventlet_server.py", line 110, in listen
2015-11-17 17:18:49.278 3431 ERROR keystone     backlog=backlog)
2015-11-17 17:18:49.278 3431 ERROR keystone   File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line 43, in listen
2015-11-17 17:18:49.278 3431 ERROR keystone     sock.bind(addr)
2015-11-17 17:18:49.278 3431 ERROR keystone   File "/usr/lib/python2.7/socket.py", line 224, in meth
2015-11-17 17:18:49.278 3431 ERROR keystone     return getattr(self._sock,name)(*args)
2015-11-17 17:18:49.278 3431 ERROR keystone error: [Errno 98] Address already in use
2015-11-17 17:18:49.278 3431 ERROR keystone

回复

使用道具 举报

jp58925465 发表于 2015-11-18 10:41:43
回复

使用道具 举报

langke93 发表于 2015-11-18 12:51:00
jp58925465 发表于 2015-11-18 10:45
非常感谢,我看了一下keystone.log,发现Address already in use 问题,然后测试一下,地址没问题啊,还 ...

可能endpoint有问题了。
在安装过程中每一步都需要验证,否则后面就比较难查了
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条