nova/nova/tests/functional/wsgi
Takashi Kajinami e5a34fffdf 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
2021-10-26 19:26:19 +09:00
..
__init__.py nova flavor manage functional test 2015-02-20 08:50:44 -05:00
test_flavor_manage.py tests: Move remaining non-libvirt fixtures 2021-05-12 16:32:43 +01:00
test_interfaces.py tests: Add helpers for suspend, resume and reboot of server 2020-08-17 10:29:34 +01:00
test_secgroup.py tests: Move remaining non-libvirt fixtures 2021-05-12 16:32:43 +01:00
test_servers.py tests: Move remaining non-libvirt fixtures 2021-05-12 16:32:43 +01:00
test_services.py Clean up allocations left by evacuation when deleting service 2021-10-26 19:26:19 +09:00