On 04/16/2018 06:23 PM, Eric Fried wrote:
I still don't see a use in returning the root providers in the
allocation requests -- since there is nothing consuming resources from
And we already return the root_provider_uuid for all providers involved
in allocation requests within the provider_summaries section.
So, I can kind of see where we might want to change *this* line of the
compute_uuids = list(provider_summaries.keys())
compute_uuids = set([
ps['root_provider_uuid'] for ps in provider_summaries
If we're granting that it's possible to get all your resources from
sharing providers, the above doesn't help you to know which of your
compute_uuids belongs to which of those sharing-only allocation requests.
I'm fine deferring this part until we have a use case for sharing-only
allocation requests that aren't prompted by an "attach-*" case where we
already know the target host/consumer. But I'd like to point out that
there's nothing in the API that prevents us from getting such results.
And I'd like to point out that I originally made the GET
/allocation_candidates API not return allocation requests when there
were only sharing providers.
Because... well, there's just no viable use cases for it.
OpenStack Development Mailing List (not for usage questions)