<div dir="ltr">That is a bit strange!<div><br></div><div>When you say that you only see this when using AZ, is there any issues when you don't specify the AZ and simply pick the default one?</div><div><br></div><div>Any other logs with <span style="font-family:monospace"> </span><span style="font-family:monospace">Unable to create allocation for 'VCPU' on resource provider?</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 29, 2021 at 4:47 PM Jeffrey Mazzone <<a href="mailto:jmazzone@uchicago.edu">jmazzone@uchicago.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="overflow-wrap: break-word;">
Hello, 
<div><br>
</div>
<div>I am installing Openstack Ussuri and am running into an issue when using Availability Zones. I initially thought it was a quota issue but that no longer seems to be the case. I started a thread on serverfault and was recommended to submit these
 questions here as well. Here is the original link: </div>
<div><br>
</div>
<div><a href="https://serverfault.com/questions/1064579/openstack-only-building-one-vm-per-machine-in-cluster-then-runs-out-of-resource" target="_blank">https://serverfault.com/questions/1064579/openstack-only-building-one-vm-per-machine-in-cluster-then-runs-out-of-resource</a> </div>
<div><br>
</div>
<div>The issue is still, I can successfully build vms on every host, but only one vm per host. The size of the initial vm does not matter. Since I posted the thread above, I have redeployed the entire cluster, by hand, using the docs on
<a href="http://openstack.org" target="_blank">openstack.org</a>. Everything worked as it should, I created 3 test aggregates,  3 test availability zones, with no issues for about a month. </div>
<div><br>
</div>
<div>All of a sudden, the system reverted to no longer allowing more than one machine to be placed per host. There has been no changes to the controller. I have enabled placement logging now so I can see more information but I don’t understand why
 its happening. </div>
<div><br>
</div>
<div>Example. Start with a host that has no vms on it: </div>
<div><br>
</div>
<div>
<pre style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace">~# openstack resource provider usage show 3f9d0deb-936c-474a-bdee-d3df049f073d<br style="box-sizing:inherit">+----------------+-------+<br style="box-sizing:inherit">| resource_class | usage |<br style="box-sizing:inherit">+----------------+-------+<br style="box-sizing:inherit">| VCPU           |     0 |<br style="box-sizing:inherit">| MEMORY_MB      |     0 |<br style="box-sizing:inherit">| DISK_GB        |     0 |<br style="box-sizing:inherit">+----------------+-------+</pre>
<div><br>
</div>
</div>
<div>Create 1 vm with 4 cores</div>
<div><br>
</div>
<div>
<pre style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace">~# openstack resource provider usage show 3f9d0deb-936c-474a-bdee-d3df049f073d<br style="box-sizing:inherit">+----------------+-------+<br style="box-sizing:inherit">| resource_class | usage |<br style="box-sizing:inherit">+----------------+-------+<br style="box-sizing:inherit">| VCPU           |    4 |<br style="box-sizing:inherit">| MEMORY_MB      |     0 |<br style="box-sizing:inherit">| DISK_GB        |     0 |<br style="box-sizing:inherit">+----------------+-------+</pre>
<div><br>
</div>
</div>
<div>The inventory list for that provider is: </div>
<pre style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace">~# openstack resource provider inventory list 3f9d0deb-936c-474a-bdee-d3df049f073d<br style="box-sizing:inherit">+----------------+------------------+----------+----------+----------+-----------+--------+<br style="box-sizing:inherit">| resource_class | allocation_ratio | min_unit | max_unit | reserved | step_size |  total |<br style="box-sizing:inherit">+----------------+------------------+----------+----------+----------+-----------+--------+<br style="box-sizing:inherit">| VCPU           |             16.0 |        1 |       64 |        0 |         1 |     64 |<br style="box-sizing:inherit">| MEMORY_MB      |              1.5 |        1 |   515655 |      512 |         1 | 515655 |<br style="box-sizing:inherit">| DISK_GB        |              1.0 |        1 |     7096 |        0 |         1 |   7096 |<br style="box-sizing:inherit">+----------------+------------------+----------+----------+----------+-----------+--------+</pre>
<div><br>
</div>
<div>Trying to  start another vm on that host fails with the following log entries: </div>
<div><br>
</div>
<div>scheduler.log</div>
<div><br>
</div>
<div><code>"status": 409, "title": "Conflict", "detail": "There was a conflict when trying to complete your request.\n\n Unable to allocate inventory: Unable to create allocation for 'VCPU' on resource provider</code></div>
<div><code><br>
</code></div>
<div>conductor.log</div>
<div><br>
</div>
<div><code>Failed to schedule instances: nova.exception_Remote.NoValidHost_Remote: No valid host was found. There are not enough hosts available.</code></div>
<div><code><br>
</code></div>
<div>placement.log</div>
<div><br>
</div>
<div><font face="Menlo">Over capacity for VCPU on resource provider 3f9d0deb-936c-474a-bdee-d3df049f073d. Needed: 4, Used: 8206, Capacity: 1024.0</font></div>
<div><font face="Menlo"><br>
</font></div>
<div>As you can see, the used value is suddenly 8206 after a single 4 core vm is placed on it. I don’t understand what im missing or could be doing wrong. Im really unsure where this value is being calculated from. All the entries in the database and
 via openstack commands show the correct values except in this log entry. Has anyone experienced the same or similar behavior? I would appreciate any insight as to what the issue could be. </div>
<div><br>
</div>
<div>Thanks in advance!</div>
<div><br>
</div>
<div>-Jeff M</div>
<div>
<div>
<div dir="auto" style="text-align:start;text-indent:0px">
<div><br>
</div>
</div>
<br>
<br>
</div>
<br>
</div>
</div>

</blockquote></div>