liuyunshishui 2017-11-02 10:14 采纳率: 0%
浏览 2073

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条回答 默认 最新

  • liuyunshishui 2017-11-03 02:55
    关注

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

    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.

    评论

报告相同问题?

悬赏问题

  • ¥30 STM32 INMP441无法读取数据
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥500 把面具戴到人脸上,请大家贡献智慧
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
  • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急
  • ¥30 c#打开word开启修订并实时显示批注
  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境