Ask Your Question
2

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

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

danidan gravatar image

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

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 https://ask.openstack.org/en/question/3106/baremetal-unable-to-launch-the-instance-due-to-no-valid-host-was-found/ 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
1

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

sgordon gravatar image

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

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
1

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

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

Comments

I have installed ubuntu 12.04 lts alomgside windows with 50gb space, 4 gb ram , I5 intel. following http://devstack.org 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 -0500 )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 -0500 )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 -0500 )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 -0500 )edit
0

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

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

Comments

3

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 -0500 )edit
1

@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 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

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

Seen: 16,156 times

Last updated: Nov 13 '13