openstack-在centos7上源码安装ocata版,创建实例时,报401的错,求助!

环境:centos7 + ocata版本 + OpenPower 服务器

tail -f /var/log/nova/compute.log

2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager [req-48ad4de2-cfb6-4166-94bb-cb5525ce6f76 8a19a07251864ea79ec9e21c5ded1737 40a3463da5d744dd90868e2436d2da94 - - -] Instance failed network setup after 1 attempt(s): Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-f162b5bb-209d-4fa7-8c21-1f24c439ee11)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager Traceback (most recent call last):
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1403, in allocate_network_async
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager bind_host_id=bind_host_id)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 873, in allocate_for_instance
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager bind_host_id, dhcp_options, available_macs)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 992, in _update_ports_for_instance
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager vif.destroy()
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit
_
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager self.force_reraise()
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager six.reraise(self.type_, self.value, self.tb)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 962, in _update_ports_for_instance
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager port_client, instance, port_id, port_req_body)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 427, in _update_port
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager port_response = port_client.update_port(port_id, port_req_body)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 780, in update_port
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager return self.put(self.port_path % (port), body=body)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 370, in put
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager headers=headers, params=params)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 338, in retry_request
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager headers=headers, params=params)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 289, in do_request
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager resp, replybody = self.httpclient.do_request(action, method, body=body)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 314, in do_request
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager return self.request(url, method, **kwargs)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 302, in request
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager resp = super(SessionClient, self).request(*args, **kwargs)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 189, in request
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager return self.session.request(url, method, **kwargs)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 573, in request
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager auth_headers = self.get_auth_headers(auth)
2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 900, in get_auth_headers

1个回答

在控制节点监控信息如下:

tail -f /var/log/nova/conductor.log

2017-11-03 10:48:40.243 7558 WARNING oslo_config.cfg [req-dde3e50d-9fea-4623-ae4a-6cb72b734d3d 8a19a07251864ea79ec9e21c5ded1737 40a3463da5d744dd90868e2436d2da94 - default default] Config option database.idle_timeout is deprecated. Use option database.connection_recycle_time instead.
2017-11-03 10:48:40.505 7558 WARNING oslo_config.cfg [req-dde3e50d-9fea-4623-ae4a-6cb72b734d3d 8a19a07251864ea79ec9e21c5ded1737 40a3463da5d744dd90868e2436d2da94 - default default] Config option database.idle_timeout is deprecated. Use option database.connection_recycle_time instead.
2017-11-03 10:48:55.781 7575 ERROR nova.scheduler.utils [req-dde3e50d-9fea-4623-ae4a-6cb72b734d3d 8a19a07251864ea79ec9e21c5ded1737 40a3463da5d744dd90868e2436d2da94 - - -] [instance: 5f868746-215f-4a3d-91e1-a4e6aa9d492b] Error from last host: compute2 (node compute2): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1784, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2020, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 5f868746-215f-4a3d-91e1-a4e6aa9d492b was re-scheduled: The request you have made requires authentication. (HTTP 401) (Request-ID: req-5df2e6cc-9116-427d-82c2-bb1f11b42e47)\n']
2017-11-03 10:48:56.044 7575 WARNING nova.scheduler.utils [req-dde3e50d-9fea-4623-ae4a-6cb72b734d3d 8a19a07251864ea79ec9e21c5ded1737 40a3463da5d744dd90868e2436d2da94 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 226, in inner
return func(*args, **kwargs)

File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
alloc_reqs_by_rp_uuid, provider_summaries)

File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 104, in select_destinations
raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.
: NoValidHost_Remote: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 226, in inner
return func(*args, **kwargs)

File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
alloc_reqs_by_rp_uuid, provider_summaries)

File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 104, in select_destinations
raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.
2017-11-03 10:48:56.045 7575 WARNING nova.scheduler.utils [req-dde3e50d-9fea-4623-ae4a-6cb72b734d3d 8a19a07251864ea79ec9e21c5ded1737 40a3463da5d744dd90868e2436d2da94 - - -] [instance: 5f868746-215f-4a3d-91e1-a4e6aa9d492b] Setting instance to ERROR state.: NoValidHost_Remote: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 226, in inner
return func(*args, **kwargs)

File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
alloc_reqs_by_rp_uuid, provider_summaries)

File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 104, in select_destinations
raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐