<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hello, 
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class=""><a href="https://serverfault.com/questions/1064579/openstack-only-building-one-vm-per-machine-in-cluster-then-runs-out-of-resource" class="">https://serverfault.com/questions/1064579/openstack-only-building-one-vm-per-machine-in-cluster-then-runs-out-of-resource</a> </div>
<div class=""><br class="">
</div>
<div class="">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" class="">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 class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">Example. Start with a host that has no vms on it: </div>
<div class=""><br class="">
</div>
<div class="">
<pre class="c-mrkdwn__pre" data-stringify-type="pre" style="box-sizing: inherit; margin-top: 4px; margin-bottom: 4px; padding: 8px; --saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; border: 1px solid var(--saf-0); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background: rgba(var(--sk_foreground_min,29,28,29),0.04); counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; color: rgb(29, 28, 29); orphans: 2; widows: 2; text-decoration-thickness: initial; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">~# openstack resource provider usage show 3f9d0deb-936c-474a-bdee-d3df049f073d<br style="box-sizing: inherit;" class="">+----------------+-------+<br style="box-sizing: inherit;" class="">| resource_class | usage |<br style="box-sizing: inherit;" class="">+----------------+-------+<br style="box-sizing: inherit;" class="">| VCPU           |     0 |<br style="box-sizing: inherit;" class="">| MEMORY_MB      |     0 |<br style="box-sizing: inherit;" class="">| DISK_GB        |     0 |<br style="box-sizing: inherit;" class="">+----------------+-------+</pre>
<div class=""><br class="">
</div>
</div>
<div class="">Create 1 vm with 4 cores</div>
<div class=""><br class="">
</div>
<div class="">
<pre class="c-mrkdwn__pre" data-stringify-type="pre" style="box-sizing: inherit; margin-top: 4px; margin-bottom: 4px; padding: 8px; --saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; border: 1px solid var(--saf-0); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background: rgba(var(--sk_foreground_min,29,28,29),0.04); counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; color: rgb(29, 28, 29); orphans: 2; widows: 2; text-decoration-thickness: initial; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">~# openstack resource provider usage show 3f9d0deb-936c-474a-bdee-d3df049f073d<br style="box-sizing: inherit;" class="">+----------------+-------+<br style="box-sizing: inherit;" class="">| resource_class | usage |<br style="box-sizing: inherit;" class="">+----------------+-------+<br style="box-sizing: inherit;" class="">| VCPU           |    4 |<br style="box-sizing: inherit;" class="">| MEMORY_MB      |     0 |<br style="box-sizing: inherit;" class="">| DISK_GB        |     0 |<br style="box-sizing: inherit;" class="">+----------------+-------+</pre>
<div class=""><br class="">
</div>
</div>
<div class="">The inventory list for that provider is: </div>
<pre class="c-mrkdwn__pre" data-stringify-type="pre" style="box-sizing: inherit; margin-top: 4px; margin-bottom: 4px; padding: 8px; --saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; border: 1px solid var(--saf-0); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background: rgba(var(--sk_foreground_min,29,28,29),0.04); counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; color: rgb(29, 28, 29); orphans: 2; widows: 2; text-decoration-thickness: initial; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">~# openstack resource provider inventory list 3f9d0deb-936c-474a-bdee-d3df049f073d<br style="box-sizing: inherit;" class="">+----------------+------------------+----------+----------+----------+-----------+--------+<br style="box-sizing: inherit;" class="">| resource_class | allocation_ratio | min_unit | max_unit | reserved | step_size |  total |<br style="box-sizing: inherit;" class="">+----------------+------------------+----------+----------+----------+-----------+--------+<br style="box-sizing: inherit;" class="">| VCPU           |             16.0 |        1 |       64 |        0 |         1 |     64 |<br style="box-sizing: inherit;" class="">| MEMORY_MB      |              1.5 |        1 |   515655 |      512 |         1 | 515655 |<br style="box-sizing: inherit;" class="">| DISK_GB        |              1.0 |        1 |     7096 |        0 |         1 |   7096 |<br style="box-sizing: inherit;" class="">+----------------+------------------+----------+----------+----------+-----------+--------+</pre>
<div class=""><br class="">
</div>
<div class="">Trying to  start another vm on that host fails with the following log entries: </div>
<div class=""><br class="">
</div>
<div class="">scheduler.log</div>
<div class=""><br class="">
</div>
<div class=""><code class="">"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 class=""><code class=""><br class="">
</code></div>
<div class="">conductor.log</div>
<div class=""><br class="">
</div>
<div class=""><code class="">Failed to schedule instances: nova.exception_Remote.NoValidHost_Remote: No valid host was found. There are not enough hosts available.</code></div>
<div class=""><code class=""><br class="">
</code></div>
<div class="">placement.log</div>
<div class=""><br class="">
</div>
<div class=""><font face="Menlo" class="">Over capacity for VCPU on resource provider 3f9d0deb-936c-474a-bdee-d3df049f073d. Needed: 4, Used: 8206, Capacity: 1024.0</font></div>
<div class=""><font face="Menlo" class=""><br class="">
</font></div>
<div class="">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 class=""><br class="">
</div>
<div class="">Thanks in advance!</div>
<div class=""><br class="">
</div>
<div class="">-Jeff M</div>
<div class="">
<div class="">
<div dir="auto" style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div><br class="">
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</body>
</html>