Ask Your Question

After creating an VM No valid host was found.

asked 2017-03-05 02:16:14 -0500

minimike gravatar image

updated 2017-03-05 04:52:59 -0500

Hi there

I get these mesage by starting my first VM.. Seems I am not alone in the dark, but I havn't found an suitable solution.

XEON D-1541 32 GB Memory Ubuntu 16.04 Installed on an ZFS Root OpenStack Mitaka with Keystone, Cinder, Neutron, Nova and Glance All in ONE but a smaller BOX is planed to be a pure Compute-Node.

I've tried it with XEN and KVM. By creating an mashiene ( cirros ) the box would been created but not started. Stopped by down described message. The Services are running. Anyone has an idea how I could debug and resolve this issue?

No valid host was found. There are not enough hosts available. 500

File "/usr/lib/python2.7/dist-packages/nova/conductor/", line 392, in build_instances context, request_spec, filter_properties) 
File "/usr/lib/python2.7/dist-packages/nova/conductor/", line 436, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) 
File "/usr/lib/python2.7/dist-
    packages/nova/scheduler/", line 372, in wrapped return func(*args, **kwargs) 
File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) 
File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/", line 121, in select_destinations return, 'select_destinations', **msg_args) 
File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/", line 158, in call retry=self.retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/", line 90, in _send timeout=timeout, retry=retry) 
File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/", line 470, in send retry=retry)
File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/", line 461, in _send raise result
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-03-05 04:56:46 -0500

To debug and eventually resolve the issue, you need to check the scheduler log file, usually /var/log/nova/nova-scheduler.log. I suggest you enable debug logging in nova.conf, restart the scheduler service and try to launch another instance.

Then, in the scheduler log, you should find DEBUG messages that show you which filter rejected the compute host. That gives you a clue what might be wrong.

edit flag offensive delete link more


As of ~ Liberty I think it gives you enough info in the scheduler logging even if you don't have DEBUG logging enabled thanks to

sgordon gravatar imagesgordon ( 2017-03-06 08:39:26 -0500 )edit

answered 2017-03-20 04:08:30 -0500

minimike gravatar image

After a week I dived deeper into neutron and get them running now. And I've learned to debug something. Thank you guys.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2017-03-05 02:16:14 -0500

Seen: 317 times

Last updated: Mar 20 '17