<div dir="ltr"><div><div><div>Hi Danny,<br><br></div>You can enable debug in nova.conf to get more detailed log on why no valid host was found.<br><br>Add this to nova.conf and restart nova scheduler:<br>debug=True<br><br>
</div>Thanks,<br></div>Yuanle<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 9, 2014 at 11:06 PM, Danny Roberts <span dir="ltr"><<a href="mailto:danny.roberts@reconnix.com" target="_blank">danny.roberts@reconnix.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'Sans Serif';font-size:10pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I am running OpenStack Havana on CentOS 6.5 using 1 controller node and 6 compute nodes.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">They are set up with shared storage for Glance, Nova & Cinder as well as shared Nova Networking (no Neutron in our environment).</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">When trying to boot an instance it goes into Building status for a few seconds before going into Error status. </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Tailing the nova scheduler log shows this error each time:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2014-01-09 14:40:06.304 2239 WARNING nova.scheduler.utils [req-3f21465f-7ec6-4ea0-9a08-c3a7dcd3faff 5fc621f9f24941febb883f78d2d350ec c22af115b6a84dc78b1ae19385c6cd23] Failed to scheduler_run_instance: No valid host was found. Exceeded max scheduling attempts 3 for instance d1ff048b-6ddd-4589-b188-7606a047df23</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">2014-01-09 14:40:06.305 2239 WARNING nova.scheduler.utils [req-3f21465f-7ec6-4ea0-9a08-c3a7dcd3faff 5fc621f9f24941febb883f78d2d350ec c22af115b6a84dc78b1ae19385c6cd23] [instance: d1ff048b-6ddd-4589-b188-7606a047df23] Setting instance to ERROR state.</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">As I understand the "No valid host" error indicates that the scheduler could not find a compute host with the resources required in order to schedule the instance on any of the available hosts. However none of the hosts are running anything currently and have decent specs. Also it's only a tiny instance so doesn't require much anyway.</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I tried setting '<span style="color:#4b4b4b;font-size:14px;font-family:'Helvetica Neue,Arial,Helvetica,sans-serif';font-weight:600">scheduler_default_filters=AllHostsFilter'</span><span style="color:#4b4b4b;font-size:14px;font-family:'Helvetica Neue,Arial,Helvetica,sans-serif'"> in '</span><span style="color:#4b4b4b;font-size:14px;font-family:'Helvetica Neue,Arial,Helvetica,sans-serif';font-weight:600">/etc/nova/nova.conf'</span>  as how I read it in the Developers docs and on various forums this should mean that the scheduler does not checks for resources and just schedules the build on a connected host. However even with this option set the '<span style="font-weight:600">nova boot' </span>still goes into Error status and gives the error shown in the above log snippet.</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I have tried multiple images in case the image is at fault but none will launch (even the one we have in use in another OpenStack environment) so don't believe that it is that. I also updated all our boxes yesterday to the latest package versions and this hasn't changed anything.</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Any ideas why this error might still be occurring or any advise on how we could debug the situation further?</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Regards,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Danny Roberts</p></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>