openstack创建实例报错,No valid host was found. There are not enough hosts available.

在配置新的OpenStack环境中,尝试创建实例时遇到'No valid host was found. There are not enough hosts available.'错误。通过检查horizon和nova的日志,发现与权限认证相关的问题。在keystone日志中找到多个'Unauthorized'警告,原因是计算节点的PLACEMENT口令为空。修复该口令后,问题得到解决。
摘要由CSDN通过智能技术生成

一套新起的OpenStack环境,在创建实例是发现报错。No valid host was found. There are not enough hosts available.

查看日之后发现 httpd有报错日志,日志指向horizon和nova。

[root@controller httpd]# cat error_log

[Wed Dec 16 14:46:09.105540 2020] [:error] [pid 3409] INFO openstack_auth.views Logging out user "".

[Wed Dec 16 14:46:12.922388 2020] [:error] [pid 3409] INFO openstack_auth.plugin.base Attempted scope to domain default failed, will attempt to scope to another domain.

[Wed Dec 16 14:46:13.193729 2020] [:error] [pid 3409] INFO openstack_auth.forms Login successful for user "Admin" using domain "default", remote address 172.31.7.247.

[Wed Dec 16 15:13:21.280021 2020] [:error] [pid 3409] INFO horizon.tables.actions \xe5\xb7\xb2\xe8\xb0\x83\xe5\xba\xa6\xe5\x88\xa0\xe9\x99\xa4\xe5\xae\x9e\xe4\xbe\x8b: "test"

[Wed Dec 16 15:13:21.641190 2020] [:error] [pid 3409] INFO horizon.tables.actions \xe5\xb7\xb2\xe8\xb0\x83\xe5\xba\xa6\xe5\x88\xa0\xe9\x99\xa4\xe5\xae\x9e\xe4\xbe\x8b: "test"


[root@controller nova]# egrep  -n  'error|ERROR'  nova-conductor.log

1253:2020-12-16 13:45:18.870 3211 WARNING nova.scheduler.utils [req-ebff204d-0c0a-4014-b647-9197eab36cb3 17423e2a06fe404e82c27530c95196a7 dc83162c60ed4184b33b4d9130e606e0 - default default] [instance: 5580bd2e-0926-4b09-825d-a36b630bc690] Setting instance to ERROR state.: NoValidHost_Remote: No valid host was found. There are not enough hosts available.

1254:2020-12-16 15:13:07.092 3211 ERROR nova.conductor.manager [req-4900bea5-f27c-4bed-ade3-57f5c578e134 17423e2a06fe404e82c27530c95196a7 dc83162c60ed4184b33b4d9130e606e0 - default default] Failed to schedule instances: NoValidHost_Remote: No valid host was found. There are not enough hosts available.

1273:2020-12-16 15:13:07.092 3211 ERROR nova.conductor.manager Traceback (most recent call last):

1274:2020-12-16 15:13:07.092 3211 ERROR nova.conductor.manager   File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 1271, in schedule_and_build_instances

1275:2020-12-16 15:13:07.092 3211 ERROR nova.conductor.manager     instance_uuids, return_alternates=True)

1276:2020-12-16 15:13:07.092 3211 ERROR nova.conductor.manager   File "/usr/lib/python2.7/site-packages/nova/conductor/manage

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值