分享

openstack 接管vcenter 实例无法启动的问题

bash 发表于 2016-8-13 21:00:39 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 13304
openstack m版
esxi center 6
对接成功 启动nova-compute 后日志以显示esxi集群的信息和版本
用vmdk镜像创建实例 报错    No valid host was found. There are not enough hosts available
控制节点nova-conductor.log日志内容
Traceback (most recent call last):

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

  File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 104, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)

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

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

2016-08-13 20:48:56.906 13499 WARNING nova.scheduler.utils [req-3db11ea7-0ebe-4c11-a678-2c8c37fc5395 33c9da38764f478d8b690b155e01b3f6 aea22082d8a54fa3a3fcdb113cf117c2 - - -] [instance: 5bf39e5d-e95e-4d42-a9a6-eb74732a4aa3] Setting instance to ERROR state.
2016-08-13 20:49:41.171 13488 ERROR nova.scheduler.utils [req-7d1ad8e0-1e7f-4d36-9215-4bbba18f32a2 33c9da38764f478d8b690b155e01b3f6 aea22082d8a54fa3a3fcdb113cf117c2 - - -] [instance: 6eb1855a-cb18-4ac3-8a0e-cef786716865] Error from last host: compute3 (node domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1926, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2116, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 6eb1855a-cb18-4ac3-8a0e-cef786716865 was re-scheduled: Invalid input received: vif type bridge not supported\n']
2016-08-13 20:49:41.270 13488 WARNING nova.scheduler.utils [req-7d1ad8e0-1e7f-4d36-9215-4bbba18f32a2 33c9da38764f478d8b690b155e01b3f6 aea22082d8a54fa3a3fcdb113cf117c2 - - -] 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 150, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 104, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)

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

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

2016-08-13 20:49:41.271 13488 WARNING nova.scheduler.utils [req-7d1ad8e0-1e7f-4d36-9215-4bbba18f32a2 33c9da38764f478d8b690b155e01b3f6 aea22082d8a54fa3a3fcdb113cf117c2 - - -] [instance: 6eb1855a-cb18-4ac3-8a0e-cef786716865] Setting instance to ERROR state.
~


接管vcenter的计算节点nova-compute.log日志内容
2016-08-13 20:56:37.631 15725 INFO nova.compute.manager [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Compute node 'domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f' not found in update_available_resource.
2016-08-13 20:57:07.665 15725 ERROR oslo_vmware.common.loopingcall [-] in fixed duration looping call
2016-08-13 20:57:07.665 15725 ERROR oslo_vmware.common.loopingcall Traceback (most recent call last):
2016-08-13 20:57:07.665 15725 ERROR oslo_vmware.common.loopingcall   File "/usr/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py", line 76, in _inner
2016-08-13 20:57:07.665 15725 ERROR oslo_vmware.common.loopingcall     self.f(*self.args, **self.kw)
2016-08-13 20:57:07.665 15725 ERROR oslo_vmware.common.loopingcall   File "/usr/lib/python2.7/site-packages/oslo_vmware/api.py", line 429, in _poll_task
2016-08-13 20:57:07.665 15725 ERROR oslo_vmware.common.loopingcall     raise task_ex
2016-08-13 20:57:07.665 15725 ERROR oslo_vmware.common.loopingcall FileNotFoundException: 找不到文件 [datastore1] 192.168.42.36_base
2016-08-13 20:57:07.665 15725 ERROR oslo_vmware.common.loopingcall
2016-08-13 20:57:08.217 15725 ERROR oslo_vmware.common.loopingcall [-] in fixed duration looping call
2016-08-13 20:57:08.217 15725 ERROR oslo_vmware.common.loopingcall Traceback (most recent call last):
2016-08-13 20:57:08.217 15725 ERROR oslo_vmware.common.loopingcall   File "/usr/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py", line 76, in _inner
2016-08-13 20:57:08.217 15725 ERROR oslo_vmware.common.loopingcall     self.f(*self.args, **self.kw)
2016-08-13 20:57:08.217 15725 ERROR oslo_vmware.common.loopingcall   File "/usr/lib/python2.7/site-packages/oslo_vmware/api.py", line 429, in _poll_task
2016-08-13 20:57:08.217 15725 ERROR oslo_vmware.common.loopingcall     raise task_ex
2016-08-13 20:57:08.217 15725 ERROR oslo_vmware.common.loopingcall FileNotFoundException: 找不到文件 [datastore1 (1)] 192.168.42.36_base
2016-08-13 20:57:08.217 15725 ERROR oslo_vmware.common.loopingcall
2016-08-13 20:57:38.063 15725 WARNING nova.compute.monitors [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Excluding nova.compute.monitors.cpu monitor virt_driver. Not in the list of enabled monitors (CONF.compute_monitors).
2016-08-13 20:57:38.064 15725 INFO nova.compute.resource_tracker [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Auditing locally available compute resources for node domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f
2016-08-13 20:57:38.938 15725 WARNING nova.compute.resource_tracker [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] No compute node record for compute3:domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f
2016-08-13 20:57:38.978 15725 INFO nova.compute.resource_tracker [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Compute_service record created for compute3:domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f
2016-08-13 20:57:39.315 15725 INFO nova.compute.resource_tracker [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Total usable vcpus: 48, total allocated vcpus: 0
2016-08-13 20:57:39.315 15725 INFO nova.compute.resource_tracker [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Final resource view: name=domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f phys_ram=118765MB used_ram=512MB phys_disk=271GB used_disk=0GB total_vcpus=48 used_vcpus=0 pci_stats=[]
2016-08-13 20:57:39.368 15725 INFO nova.compute.resource_tracker [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Compute_service record updated for compute3:domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f
2016-08-13 20:57:39.369 15725 INFO nova.compute.manager [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Deleting orphan compute node 275
2016-08-13 20:58:40.054 15725 ERROR nova.compute.manager [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] No compute node record for host compute3
2016-08-13 20:58:40.055 15725 INFO nova.compute.resource_tracker [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Auditing locally available compute resources for node domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f
2016-08-13 20:58:40.959 15725 INFO nova.compute.resource_tracker [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Total usable vcpus: 48, total allocated vcpus: 0
2016-08-13 20:58:40.959 15725 INFO nova.compute.resource_tracker [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Final resource view: name=domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f phys_ram=118765MB used_ram=512MB phys_disk=271GB used_disk=0GB total_vcpus=48 used_vcpus=0 pci_stats=[]
2016-08-13 20:58:40.994 15725 INFO nova.compute.manager [req-1f8d68a3-e5cc-44e7-8b27-0869e6998340 - - - - -] Compute node 'domain-c20.1ae73f58-a96e-466f-b1e8-7d0a30c34c5f' not found in update_available_resource.


@
              大罗神仙救救我 谢谢 以头破血流                                                         


已有(1)人评论

跳转到指定楼层
arsenduan 发表于 2016-8-14 09:21:32
这个原因比较多
1.No valid host was found. There are not enough hosts available. 这意味着Nova Scheduler 无法找到合适的裸机节点来引导新的实例
推荐参考
"NO VALID HOST FOUND" ERRORS问题排查
http://www.aboutyun.com/forum.php?mod=viewthread&tid=19493



2.核实 disk/memory/vcpus 在hypervisors 是否足够可用


回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条