<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="">
<div class=""><font color="#be37f4" class="">Any other logs with <span style="font-family: monospace;" class=""> </span><span style="font-family: monospace;" class="">Unable to create allocation for 'VCPU' on resource provider?</span></font></div>
<div class=""><font color="#be37f4" class=""><span style="font-family: monospace;" class=""><br class="">
</span></font></div>
<div class="">No, the 3 logs listed are the only logs where it is showing this message and VCPU is the only thing it fails for. No memory or disk allocation failures, always VCPU.<font face="monospace" class=""> </font></div>
<font color="#be37f4" class="">
<div class=""><font color="#be37f4" class=""><br class="">
</font></div>
<div class=""><font color="#be37f4" class=""><br class="">
</font></div>
At this point if you list the resource provider usage on 3f9d0deb-936c-474a-bdee-d3df049f073d again then do you still see 4 VCPU used, or 8206 used?</font>
<div class=""><font color="#be37f4" class=""><span style="caret-color: rgb(190, 55, 244);" class=""><br class="">
</span></font></div>
<div class=""><span style="caret-color: rgb(190, 55, 244);" class="">The usage shows everything correctly: </span></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      |  8192 |<br style="box-sizing: inherit;" class="">| DISK_GB        |    10 |<br style="box-sizing: inherit;" class="">+----------------+-------+</pre>
<div class=""><br class="">
</div>
<div class="">Allocations shows the same: </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 show 3f9d0deb-936c-474a-bdee-d3df049f073d --allocations<br style="box-sizing: inherit;" class="">+-------------+--------------------------------------------------------------------------------------------------------+<br style="box-sizing: inherit;" class="">| Field       | Value                                                                                                  |<br style="box-sizing: inherit;" class="">+-------------+--------------------------------------------------------------------------------------------------------+<br style="box-sizing: inherit;" class="">| uuid        | 3f9d0deb-936c-474a-bdee-d3df049f073d                                                                   |<br style="box-sizing: inherit;" class="">| name        | kh09-50                                                                                                |<br style="box-sizing: inherit;" class="">| generation  | 244                                                                                                    |<br style="box-sizing: inherit;" class="">| allocations | {'4a6fe4c2-ece4-45c2-b7a2-fdfd41308988': {'resources': {'VCPU': 4, 'MEMORY_MB': 8192, 'DISK_GB': 10}}} |<br style="box-sizing: inherit;" class="">+-------------+--------------------------------------------------------------------------------------------------------+</pre>
<div class=""><br class="">
</div>
</div>
<div class="">Allocation candidate list shows all 228 servers in the cluster available: </div>
<div class=""><br class="">
</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 allocation candidate list --resource VCPU=4 -c "resource provider" -f value | wc -l<br style="box-sizing: inherit;" class="">228</pre>
<div class=""><br class="">
</div>
<div class=""> Starting a new vm on that host shows the following in the logs: </div>
<div class=""><br class="">
</div>
<div class="">Placement-api.log</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;">2021-06-30 12:27:21.335 4382 WARNING placement.objects.allocation [req-f4d74abc-7b18-407a-85e7-f1c268bd5e53 a770bde56c9d49e68facb792cf69088c 6da06417e0004cbb87c1e64fe1978de5 - default default] Over capacity for VCPU on resource provider 0e0d8ec8-bb31-4da5-a813-bd73560ff7d6. Needed: 4, Used: 8206, Capacity: 1024.0</pre>
<div class=""><br class="">
</div>
</div>
<div class="">nova-scheduler.log</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;">2021-06-30 12:27:21.429 6895 WARNING nova.scheduler.client.report [req-3106f4da-1df9-4370-b56b-8ba6b62980dc aacc7911abf349b783eed20ad176c034 23920ecfbf294e71ad558aa49cb17de8 - default default] Failed to save allocation for a9296e22-4b50-45b7-a442-1fce0a844bcd. Got HTTP 409: {"errors": [{"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 '3f9d0deb-936c-474a-bdee-d3df049f073d'. The requested amount would exceed the capacity.  ", "code": "placement.undefined_code", "request_id": "req-e9f12a3a-3136-4501-8bd6-4add31f0eb82"}]}</pre>
<div class=""><br class="">
</div>
</div>
<div class="">I really can’t figure out where this, what’s seems to be last minute, calculation of used resources comes from. </div>
<div class=""><br class="">
</div>
<div class=""><font color="#be37f4" class="">Given you also have an Ussuri deployment, you could call the nova-audit command to see whether you would have orphaned allocations :</font></div>
<div class=""><dt class=""><code class="gmail-notranslate gmail-literal gmail-docutils"><font color="#be37f4" class=""><span class="gmail-pre">nova-manage</span> <span class="gmail-pre">placement</span> <span class="gmail-pre">audit</span> <span class="gmail-pre">[--verbose]</span> <span class="gmail-pre">[--delete]</span> <span class="gmail-pre">[--resource_provider</span> <span class="gmail-pre"><uuid>]</span></font></code></dt></div>
<div class=""><br class="">
</div>
<div class="">When running this command, it says the UUID does not exist. </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Thank you! I truly appreciate everyones help. </div>
<div class=""><br class="">
</div>
<div class="">-Jeff M</div>
<div class="">
<div class=""><br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
</body>
</html>