Ask Your Question

"No valid host was found" when launching an instance [closed]

asked 2013-10-29 07:05:01 -0600

danidan gravatar image

updated 2013-10-29 07:08:55 -0600

I installted OpenStack using DevStack script on my 2 virtual machines running both Ubuntu Server 12.04.3. One machine is the Controller Node and the other one is a Compute node.

When I login to Dashboard and I try to launch an instance i get the "No valid host was found" error. I saw this question and I tried

$nova baremetal-node-list

but I get this error:

ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-3357efc7-7293-461e-995c-585420ad1d8f)

What you suggest me to troubleshoot this (these??) problem/s?

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by dheeru
close date 2013-12-12 01:36:17.618362

3 answers

Sort by ยป oldest newest most voted

answered 2013-10-29 09:56:22 -0600

sgordon gravatar image

updated 2013-10-29 09:57:07 -0600

The NoValidHost error indicates that the scheduler was unable to locate a compute node with enough available vCPUs, RAM, or HDD space to host an instance of the selected flavour. Ensure that the nova-compute service is active on the compute node and that the compute node has enough available resources to host the instance being launched. Note that the baremetal-* commands are only relevant to users of the baremetal driver.

edit flag offensive delete link more

answered 2013-10-30 12:36:09 -0600

dheeru gravatar image

Please look at the nova-api.log and nova-scheduler.log. Check whether rabbitmq is running on controller. Appropriate password set for rabbitmq in nova.conf on controller and compute. Compute should be connecting to rabitmq on controller itself. You can set the flag scheduler_default_filters=AllHostsFilter in nova.conf. Restart the all service on controller and compute.

You can forward nova.conf on both boxes and log files. I can check them. -Dheerendra

edit flag offensive delete link more


I have installed ubuntu 12.04 lts alomgside windows with 50gb space, 4 gb ram , I5 intel. following i have installed openstack for all in one single machine. when i try to launch any image, the error comes like this : Error: Failed to launch instance "cirros2nd": Please try again

Abhi9wagadre gravatar imageAbhi9wagadre ( 2015-01-15 03:26:06 -0600 )edit

later [Error: No valid host was found. There are not enough hosts available.].

however the same configuration use to run very smoothly without any errors. now when i have googled for the error, it says,it is because you have less resources which i have enough and 2nd reason is

Abhi9wagadre gravatar imageAbhi9wagadre ( 2015-01-15 03:26:34 -0600 )edit

nova-compute is missing from nova-manage service list.

no availability zones are found to launch my image. i have attached ![image descriptionhttp:// (image description)(http://)(http://)(http://)screenshots for the reference.

kindly help. regarding the same. it is my final year project.

Abhi9wagadre gravatar imageAbhi9wagadre ( 2015-01-15 03:26:47 -0600 )edit

@Abhi9wagadre Sir, did you find the solution to the problem. I'm stuck in the same and need guidance.

sanya gravatar imagesanya ( 2016-10-24 04:13:24 -0600 )edit

answered 2013-11-13 05:36:43 -0600

danidan gravatar image

thank you both! i've solved the problem but i don't know how... :-S I've stacked and unstacked OpenStack so many times, and every time with a little change. I managed to work the stack just today. Maybe, I guess, was it a lack of resources problem?

Thank you again. I'm going to upvote eachone of your answer.

edit flag offensive delete link more



hi, I am facin the same error, can you tell me what changes you made during unstack and stack from devstack all in one single machine. I am stuck on this high time and cant resolve the error. kindly help,this is my final year project and my deadline is in 30 days.

Abhi9wagadre gravatar imageAbhi9wagadre ( 2015-01-15 05:02:36 -0600 )edit

@Abhi9wagadre Sir, did you find the solution to the problem. I'm stuck in the same and need guidance.

sanya gravatar imagesanya ( 2016-10-24 04:12:44 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-10-29 07:05:01 -0600

Seen: 16,250 times

Last updated: Nov 13 '13