nova/nova/tests/functional/wsgi
Matt Riedemann 30a6350685 Block deleting compute services with in-progress migrations
This builds on I0bd63b655ad3d3d39af8d15c781ce0a45efc8e3a
which made DELETE /os-services/{service_id} fail with a 409
response if the host has instances on it. This change checks
for in-progress migrations involving the nodes on the host,
either as the source or destination nodes, and returns a 409
error response if any are found.

Failling to do this can lead to orphaned resource providers
in placement and also failing to properly confirm or revert
a pending resize or cold migration.

A release note is included for the (justified) behavior
change in the API. A new microversion should not be required
for this since admins should not have to opt out of broken
behavior.

Conflicts:
      nova/tests/functional/integrated_helpers.py

NOTE(mriedem): The conflict is due to not having change
Ie991d4b53e9bb5e7ec26da99219178ab7695abf6 in Rocky.

Change-Id: I70e06c607045a1c0842f13069e51fef438012a9c
Closes-Bug: #1852610
(cherry picked from commit 92fed02610)
(cherry picked from commit a9650b3cbf)
(cherry picked from commit a0290858b7)
2019-12-09 18:34:52 -05:00
..
__init__.py nova flavor manage functional test 2015-02-20 08:50:44 -05:00
test_flavor_manage.py Remove compatibility code for flavors 2017-09-05 10:36:10 -04:00
test_interfaces.py Fix functional tests for USE_NEUTRON 2017-12-21 19:11:46 -05:00
test_secgroup.py Enable global hacking checks and removed local checks 2017-02-10 15:09:37 +01:00
test_servers.py fixtures: Track volume attachments within CinderFixtureNewAttachFlow 2018-10-23 13:46:26 +01:00
test_services.py Block deleting compute services with in-progress migrations 2019-12-09 18:34:52 -05:00