[kilo]Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available
Hi All,
I was trying to create instance on kilo and met this error.
in control node, /var/log/nova/nova-conductor.log it said:
2015-05-01 07:03:27.837 1742 WARNING nova.scheduler.utils [req-853c7c96-ce99-42a8-8b8b-7d0d2bc61835 17d55b88b52948b9a9eb64abbef51142 de39e7f8 aeea4461813e90cdbd1fc064 - -
-] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available. Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 142, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 86, in select_destinations
filter_properties)
File "/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py", line 80, in select_destinations
raise exception.NoValidHost(reason=reason)
NoValidHost: No valid host was found. There are not enough hosts available.
2015-05-01 07:03:27.838 1742 WARNING nova.scheduler.utils [req-853c7c96-ce99-42a8-8b8b-7d0d2bc61835 17d55b88b52948b9a9eb64abbef51142 de39e7f8 aeea4461813e90cdbd1fc064 - -
-] [instance: bdc8048c-646b-4df7-8780-6084b254d87a] Setting instance to ERROR state.
and in compute node, /var/log/nova/nova-compute.log it said:
2015-05-01 07:03:31.240 1909 INFO nova.compute.claims [-] [instance: bdc8048c-646b-4df7-8780-6084b254d87a] Total disk: 38 GB, used: 0.00 GB
2015-05-01 07:03:33.482 1909 TRACE nova.compute.manager [instance: bdc8048c-646b-4df7-8780-6084b254d87a] Traceback (most recent call last):
2015-05-01 07:03:31.240 1909 INFO nova.compute.claims [-] [instance: bdc8048c-646b-4df7-8780-6084b254d87a] Total disk: 38 GB, used: 0.00 GB
2015-05-01 07:03:31.240 1909 INFO nova.compute.claims [-] [instance: bdc8048c-646b-4df7-8780-6084b254d87a] disk limit not specified, defaulti
ng to unlimited
2015-05-01 07:03:31.317 1909 INFO nova.compute.claims [-] [instance: bdc8048c-646b-4df7-8780-6084b254d87a] Claim successful
2015-05-01 07:03:31.446 1909 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute1', 'compute1')
2015-05-01 07:03:31.647 1909 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute1', 'compute1')
2015-05-01 07:03:31.986 1909 INFO nova.virt.libvirt.driver [req-ed1023af-7702-453b-bfba-b2d5fde0029b - - - - -] [instance: bdc8048c-646b-4df7
-8780-6084b254d87a] Creating image
2015-05-01 07:03:32.404 1909 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute1', 'compute1')
2015-05-01 07:03:32.769 1909 INFO nova.virt.disk.vfs.api [req-ed1023af-7702-453b-bfba-b2d5fde0029b - - - - -] Unable to import guestfs, falli
ng back to VFSLocalFS
2015-05-01 07:03:33.482 1909 ERROR nova.compute.manager [req-ed1023af-7702-453b-bfba-b2d5fde0029b - - - - -] [instance: bdc8048c-646b-4df7-87
80-6084b254d87a] Instance failed to spawn
2015-05-01 07:03:33.482 1909 TRACE nova.compute.manager [instance: bdc8048c-646b-4df7-8780-6084b254d87a] Traceback (most recent call last):
2015-05-01 07:03:33.482 1909 TRACE nova.compute.manager [instance: bdc8048c-646b-4df7-8780-6084b254d87a] File "/usr/lib/python2.7/dist-pack
ages/nova/compute/manager.py", line 2438, in _build_resources
2015-05-01 07:03:33.482 1909 TRACE nova.compute.manager [instance: bdc8048c-646b-4df7-8780-6084b254d87a] yield resources
2015-05-01 07:03:33.482 1909 TRACE nova.compute.manager [instance: bdc8048c-646b-4df7-8780-6084b254d87a] File "/usr/lib/python2.7/dist-pack
ages/nova/compute/manager.py", line 2310, in _build_and_run_instance
2015-05-01 07:03:33.482 1909 TRACE nova.compute.manager [instance: bdc8048c-646b-4df7-8780-6084b254d87a] block_device_info=block_device_i
nfo)
2015-05-01 07:03:33.482 1909 TRACE nova.compute.manager [instance: bdc8048c-646b-4df7-8780-6084b254d87a] File "/usr/lib/python2.7/dist-pack
ages/nova/virt/libvirt/driver.py", line 2351, in spawn
2015-05-01 07:03:33.482 1909 TRACE nova.compute.manager [instance: bdc8048c-646b-4df7-8780-6084b254d87a] write_to_disk=True)
2015-05-01 07:03:33.482 1909 ...
by the way, my ubuntu version is 14.04.1
I am having the same problem on a new build of kilo, not devstack. Are you still trying to figure out yours?
Any updates to this? Still having this trouble?
Is there someone out there with a solution to this?. Please reply.
having similar problem running kilo on centos7