nova/nova/tests/functional
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
..
api Replace time.sleep(10) with service forced_down in tests 2019-11-27 02:01:12 +00:00
api_sample_tests Reduce scope of 'path' query parameter to noVNC consoles 2019-10-02 16:22:51 +00:00
compute Error out interrupted builds 2019-10-23 20:11:20 +00:00
db Fix misuse of nova.objects.base.obj_equal_prims 2019-08-14 08:56:45 +09:00
libvirt Merge "Improve NeutronFixture and remove unncessary stubbing" 2018-08-02 17:44:55 +00:00
notification_sample_tests Stabilize unshelve notification sample tests 2019-07-04 12:58:26 +02:00
regressions Fix listing deleted servers with a marker 2019-10-29 15:25:24 -04:00
wsgi Block deleting compute services with in-progress migrations 2019-12-09 18:34:52 -05:00
__init__.py move eventlet GREENDNS override to top level 2014-12-08 17:41:03 -05:00
api_paste_fixture.py Remove legacy v2 API functional tests 2016-05-04 18:17:23 +08:00
api_samples_test_base.py Fix os-simple-tenant-usage result order 2018-10-29 08:15:47 +00:00
integrated_helpers.py Block deleting compute services with in-progress migrations 2019-12-09 18:34:52 -05:00
test_aggregates.py Check hosts have no instances for AZ rename 2019-03-06 16:31:28 +03:00
test_availability_zones.py Update instance.availability_zone on revertResize 2019-03-28 10:20:07 -04:00
test_boot_from_volume.py Properly track local root disk usage during moves 2018-10-31 12:45:49 -04:00
test_compute_mgr.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
test_images.py Share snapshot image membership with instance owner 2019-04-30 21:13:46 +09:00
test_instance_actions.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_legacy_v2_compatible_wrapper.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_list_servers_ip_filter.py Trivial: Nix duplicate PlacementFixture() in test 2017-12-01 15:39:28 -06:00
test_login.py update api_samples code to use better variables 2015-12-14 11:23:26 +08:00
test_metadata.py Remove unused logging import 2017-02-17 15:17:51 +07:00
test_middleware.py Removes unnecessary utf-8 encoding 2016-12-20 10:27:01 +07:00
test_multiattach.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_nova_manage.py Merge "Delete instance_group_member records from API DB during archive" into stable/rocky 2018-09-21 12:01:46 +00:00
test_report_client.py Use placement microversion 1.26 in update_from_provider_tree 2018-08-20 11:48:57 -04:00
test_server_faults.py Replace non-nova server fault message 2019-08-06 11:35:58 -04:00
test_server_group.py Replace time.sleep(10) with service forced_down in tests 2019-11-27 02:01:12 +00:00
test_servers.py Add functional recreate test for bug 1852610 2019-12-09 18:22:41 -05:00