[openstack-dev] [nova] How to debug no valid host failures with placement
Eric Fried
openstack at fried.cc
Thu Aug 2 17:40:59 UTC 2018
Jay et al-
> And what I'm referring to is doing a single query per "related
> resource/trait placement request group" -- which is pretty much what
> we're heading towards anyway.
>
> If we had a request for:
>
> GET /allocation_candidates?
> resources0=VCPU:1&
> required0=HW_CPU_X86_AVX2,!HW_CPU_X86_VMX&
> resources1=MEMORY_MB:1024
>
> and logged something like this:
>
> DEBUG: [placement request ID XXX] request group 1 of 2 for 1 PCPU,
> requiring HW_CPU_X86_AVX2, forbidding HW_CPU_X86_VMX, returned 10 matches
>
> DEBUG: [placement request ID XXX] request group 2 of 2 for 1024
> MEMORY_MB returned 3 matches
>
> that would at least go a step towards being more friendly for debugging
> a particular request's results.
Well, that's easy [1] (but I'm sure you knew that when you suggested
it). Produces logs like [2].
This won't be backportable, I'm afraid.
[1] https://review.openstack.org/#/c/588350/
[2] http://paste.openstack.org/raw/727165/
More information about the OpenStack-dev
mailing list