[openstack-dev] [nova] How to debug no valid host failures with placement

Alex Xu soulxu at gmail.com
Thu Aug 2 05:12:54 UTC 2018


2018-08-02 4:09 GMT+08:00 Jay Pipes <jaypipes at gmail.com>:

> On 08/01/2018 02:02 PM, Chris Friesen wrote:
>
>> On 08/01/2018 11:32 AM, melanie witt wrote:
>>
>> I think it's definitely a significant issue that troubleshooting "No
>>> allocation
>>> candidates returned" from placement is so difficult. However, it's not
>>> straightforward to log detail in placement when the request for
>>> allocation
>>> candidates is essentially "SELECT * FROM nodes WHERE cpu usage < needed
>>> and disk
>>> usage < needed and memory usage < needed" and the result is returned
>>> from the API.
>>>
>>
>> I think the only way to get useful info on a failure would be to break
>> down the huge SQL statement into subclauses and store the results of the
>> intermediate queries.
>>
>
> This is a good idea and something that can be done.
>

That sounds like you need separate sql query for each resource to get
the intermediate,
will that be terrible performance than a single query to get the final
result?


>
> Unfortunately, it's refactoring work and as a community, we tend to
> prioritize fancy features like NUMA topology and CPU pinning over
> refactoring work.
>
> Best,
> -jay
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20180802/af2681a1/attachment.html>


More information about the OpenStack-dev mailing list