nova/nova/scheduler/client
Balazs Gibizer 1ced590571 Consumer gen: remove_provider_from_instance_allocation
This patch changes the scheduler report client
remove_provider_from_instance_allocation function to use placement API
microversion 1.28 that includes consumer generation handling. If
placement returns 409 conflict remove_provider_from_instance_allocation
returns False in the same way as in case of other non 204 results.

There are plenty of places in nova calling
remove_provider_from_instance_allocation:
* dropping allocation on the destination of a live migrate if pre check
  fails
* compute host startup deletes allocation of an instance that was
  successfully evacuated from the host while it was down
* rebuild fails on the destination of an evacuation and therefore
  the allocation on the destination is deleted
* pre resize fails therefore allocation on the destination is deleted

This patch does not change the external behavior of
remove_provider_from_instance_allocation as it still returns False in
caes of failure. Therefore this patch does not introduce new functional
test for the above cases but rely on the existing coverage. However based
on the other patches in this series the error handling in these cases
is suspected to be imperfect.

Blueprint: use-nested-allocation-candidates
Change-Id: I328a18a723d0f593eea491f788a6e256d6e0c127
2018-09-25 13:20:32 +02: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 Consumer gen: remove_provider_from_instance_allocation 2018-09-25 13:20:32 +02:00