目 录CONTENT

文章目录

在同一台计算上调整 openstack 实例的大小

xlong
2024-06-22 / 0 评论 / 0 点赞 / 17 阅读 / 1582 字 / 正在检测是否收录...

如果您只有 1 个控制器或者 1 个计算节点,并且想要过度提交或调整实例大小,则会出现以下错误。

Failed to compute_task_migrate_server: No valid host was found. There are not enough hosts available.

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

Host filter ignoring hosts: controller

为此,您需要对控制器和计算进行如下配置

在控制器上,你需要在 /etc/nova/nova.conf 文件的 DEFAULT 部分下添加以下几行

[DEFAULT]
allow_resize_to_same_host = True 
scheduler_default_filters = AllHostsFilter

在 Compute 上,您需要在 /etc/nova/nova.conf 文件的 DEFAULT 部分下添加以下几行

[DEFAULT]
allow_resize_to_same_host = True

在控制器上重新启动服务

systemctl restart nova-api.service nova-scheduler.service nova-conductor.service nova-novncproxy.service

重启计算服务

systemctl restart nova-compute.service

0

评论区