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/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虚拟化导致.关机打开即可
在这里插入图片描述

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐