Ask Your Question
1

[kilo]Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available

asked 2015-04-30 19:16:14 -0500

blanka gravatar image

updated 2015-04-30 19:20:39 -0500

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 ...
(more)
edit retag flag offensive close merge delete

Comments

by the way, my ubuntu version is 14.04.1

blanka gravatar imageblanka ( 2015-04-30 19:56:34 -0500 )edit

I am having the same problem on a new build of kilo, not devstack. Are you still trying to figure out yours?

SuperCraig gravatar imageSuperCraig ( 2015-05-06 21:29:11 -0500 )edit

Any updates to this? Still having this trouble?

d3an-meehan gravatar imaged3an-meehan ( 2015-09-17 08:03:10 -0500 )edit

Is there someone out there with a solution to this?. Please reply.

Arul gravatar imageArul ( 2015-09-30 01:18:57 -0500 )edit

having similar problem running kilo on centos7

pl33g0r gravatar imagepl33g0r ( 2015-10-02 18:56:06 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-07 03:44:22 -0500

Suresh Dharavath gravatar image

this mount -o remount devpts solved my purpose.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-04-30 19:16:14 -0500

Seen: 3,817 times

Last updated: Mar 07 '16