nova/nova/scheduler
Takashi Kajinami 037e588788 Clean up allocations left by evacuation when deleting service
When a compute node goes down and all instances on the compute node
are evacuated, allocation records about these instance are still left
in the source compute node until nova-compute service is again started
on the node. However if a compute node is completely broken, it is not
possible to start the service again.
In this situation deleting nova-compute service for the compute node
doesn't delete its resource provider record, and even if a user tries
to delete the resource provider, the delete request is rejected because
allocations are still left on that node.

This change ensures that remaining allocations left by successful
evacuations are cleared when deleting a nova-compute service, to avoid
any resource provider record left even if a compute node can't be
recovered. Migration records are still left in 'done' status to trigger
clean-up tasks in case the compute node is recovered later.

Closes-Bug: #1829479
Change-Id: I3ce6f6275bfe09d43718c3a491b3991a804027bd
(cherry picked from commit e5a34fffdf)
2021-11-08 12:38:11 +00:00
..
client Clean up allocations left by evacuation when deleting service 2021-11-08 12:38:11 +00:00
filters Merge "Deprecate filters that have been replaced by placement filters" 2021-08-21 02:51:28 +00:00
weights Add CrossCellWeigher 2019-12-12 12:40:29 -05:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
host_manager.py scheduler: 'USES_ALLOCATION_CANDIDATES' removal cleanup 2021-06-29 12:22:29 +01:00
manager.py Add force kwarg to delete_allocation_for_instance 2021-08-30 06:11:25 +00:00
request_filter.py FUP: Catch and reraise routed nets exception 2021-02-19 19:23:10 +01:00
rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-20 09:03:53 -05:00
utils.py Support interface attach / detach with new resource request format 2021-09-01 15:51:47 +02:00