<div dir="ltr">Hi,<div><br></div><div>It seems you need first to check what placement knows about resources of your cloud.</div><div>This can be done either with REST API [1] or with osc-placement [2].</div><div>For osc-placement you could use:</div><div><br></div><div>pip install osc-placement<br></div><div>openstack allocation candidate list --resource DISK_GB=20 --resource MEMORY_MB=2048 --resource VCPU=1 --os-placement-api-version 1.10<br></div><div><br></div><div>And you can explore placement state with other commands like openstack resource provider list, resource provider inventory list, resource provider usage show.</div><div><br></div><div>[1] <a href="https://developer.openstack.org/api-ref/placement/">https://developer.openstack.org/api-ref/placement/</a></div><div>[2] <a href="https://docs.openstack.org/osc-placement/latest/index.html">https://docs.openstack.org/osc-placement/latest/index.html</a></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 1, 2018 at 6:16 PM Ben Nemec <<a href="mailto:openstack@nemebean.com">openstack@nemebean.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm having an issue with no valid host errors when starting instances <br>
and I'm struggling to figure out why.  I thought the problem was disk <br>
space, but I changed the disk_allocation_ratio and I'm still getting no <br>
valid host.  The host does have plenty of disk space free, so that <br>
shouldn't be a problem.<br>
<br>
However, I'm not even sure it's disk that's causing the failures because <br>
I can't find any information in the logs about why the no valid host is <br>
happening.  All I get from the scheduler is:<br>
<br>
"Got no allocation candidates from the Placement API. This may be a <br>
temporary occurrence as compute nodes start up and begin reporting <br>
inventory to the Placement service."<br>
<br>
While in placement I see:<br>
<br>
2018-08-01 15:02:22.062 20 DEBUG nova.api.openstack.placement.requestlog <br>
[req-0a830ce9-e2af-413a-86cb-b47ae129b676 <br>
fc44fe5cefef43f4b921b9123c95e694 b07e6dc2e6284b00ac7070aa3457c15e - <br>
default default] Starting request: 10.2.2.201 "GET <br>
/placement/allocation_candidates?limit=1000&resources=DISK_GB%3A20%2CMEMORY_MB%3A2048%2CVCPU%3A1" <br>
__call__ <br>
/usr/lib/python2.7/site-packages/nova/api/openstack/placement/requestlog.py:38<br>
2018-08-01 15:02:22.103 20 INFO nova.api.openstack.placement.requestlog <br>
[req-0a830ce9-e2af-413a-86cb-b47ae129b676 <br>
fc44fe5cefef43f4b921b9123c95e694 b07e6dc2e6284b00ac7070aa3457c15e - <br>
default default] 10.2.2.201 "GET <br>
/placement/allocation_candidates?limit=1000&resources=DISK_GB%3A20%2CMEMORY_MB%3A2048%2CVCPU%3A1" <br>
status: 200 len: 53 microversion: 1.25<br>
<br>
Basically it just seems to be logging that it got a request, but there's <br>
no information about what it did with that request.<br>
<br>
So where do I go from here?  Is there somewhere else I can look to see <br>
why placement returned no candidates?<br>
<br>
Thanks.<br>
<br>
-Ben<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Thanks,</div><div><br></div><div>Andrey Volkov,</div><div>Software Engineer, <span style="font-size:12.8px">Mirantis, Inc.</span></div></div></div></div></div></div>