nova/nova/scheduler/client
Eric Fried 3921cbc9ec New-style _set_inventory_for_provider
Given the UUID of a provider, set the inventory records for the provider
to the supplied dict of resources.

Compare and contrast with the existing set_inventory_for_provider, which
was created for the simpler get_inventory code path from the resource
tracker.

This one is specially formulated for use by update_from_provider_tree,
because from there, whereas we DO need to _ensure_resource_class(), we
ALSO want to short out if inv_data matches what's already cached, but we
DON'T want to:
- _ensure_resource_provider
- refresh_and_get_inventory
- DELETE if inventory is empty, else PUT
- retry
- invalidate the cache on failure

This version is more in the spirit of set_traits_for_provider.

Change-Id: I45f1df6ca5618f76337319ba225493625a5ee2d6
blueprint: update-provider-tree
2018-03-12 10:37:36 -05:00
..
__init__.py [placement] Add sending global request ID in delete (3) 2018-01-22 02:23:12 +00:00
query.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
report.py New-style _set_inventory_for_provider 2018-03-12 10:37:36 -05:00