Openstack 建虚拟机报错---No valid host was found.
Openstack 建虚拟机报错---No valid host was found.故障现象故障原因解决问题总结故障现象虚拟机创建孵化失败.错误信息如下:消息 No valid host was found.编码 500详情 Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nova/conduct
·
故障现象
虚拟机创建孵化失败.
错误信息如下:
消息 No valid host was found.
编码 500
详情 Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 1379, in schedule_and_build_instances instance_uuids, return_alternates=True) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 839, in _schedule_instances return_alternates=return_alternates) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 42, in select_destinations instance_uuids, return_objects, return_alternates) File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 160, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 181, in call transport_options=self.transport_options) File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 129, in _send transport_options=transport_options) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 674, in send transport_options=transport_options) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 664, in _send raise result NoValidHost_Remote: No valid host was found. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 235, in inner return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 199, in select_destinations raise exception.NoValidHost(reason="") NoValidHost: No valid host was found.
已创建
Dec. 21, 2021, 3:33 p.m.
截图如下:
故障原因
虚拟机创建时选用的实例类型是2C-2G-50G,远程登录时发现服务器磁盘不足50G.所以创建失败了.
解决问题
创建一个较小的实例类型,1C-1G-20G,再通过这个实例类型创建虚拟机成功.
总结
No valid host was found.一般是由于资源不足引起,
偶尔也会是做实验的机器没有开启cpu虚拟化导致.关机打开即可
更多推荐
已为社区贡献16条内容
所有评论(0)