一套新起的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