nova/api-ref/source
Matt Riedemann a0290858b7 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/api/openstack/compute/services.py
      nova/tests/functional/integrated_helpers.py
      nova/tests/functional/wsgi/test_services.py

NOTE(mriedem): The conflict in services.py is due to not
having change I9d257a003d315b84b937dcef91f3cb41f3e24b53 in Stein.
The conflict in integrated_helpers.py is due to not having change
I4aac187283c2f341b5c2712be85f722156e14f63 or change
Ibeb16ce16263c43bad9f148480bbebca413d8117 in Stein. As a result
test_services does not use _confirm_resize but just inlines the
call and wait for ACTIVE status in the test. The conflict in
test_services.py is due to not having change
If32bca070185937ef83f689b7163d965a89ec10a in Stein.

Change-Id: I70e06c607045a1c0842f13069e51fef438012a9c
Closes-Bug: #1852610
(cherry picked from commit 92fed02610)
(cherry picked from commit a9650b3cbf)
2019-11-25 11:11:13 -05:00
..
conf.py trivial: Remove crud from 'conf.py' 2018-01-18 10:39:24 +00:00
diagnostics.inc Fixed some nits for microversion 2.48 2017-06-06 13:34:17 +00:00
extensions.inc Enable all extension for all remaining sample tests 2016-06-10 06:03:02 +00:00
flavors.inc api-ref: Remove unnecessary minimum microversion 2018-10-25 16:37:21 +09:00
images.inc Fix api-ref: nova image-meta is deprecated from 2.39 2018-03-26 06:31:20 +00:00
index.rst api-ref: mark os-cells as deprecated 2019-02-13 13:19:06 -05:00
ips.inc API Ref: update server_id params 2016-11-11 14:01:51 -05:00
limits.inc api-ref: sort parameters for limits, quotas and quota classes 2017-12-18 13:40:13 -05:00
metadata.inc Make metadata doc more readable 2017-03-31 06:19:01 +00:00
os-agents.inc api-ref: body verification of os-agents 2016-07-08 02:03:07 +00:00
os-aggregates.inc api-ref: mention policy defaults for aggregates 2019-02-06 16:18:24 -05:00
os-assisted-volume-snapshots.inc libvirt: remove glusterfs volume driver 2017-05-19 14:51:42 -04:00
os-availability-zone.inc Stop using "nova" in API samples when creating a server 2019-03-01 10:43:08 -05:00
os-baremetal-nodes.inc Better wording for micorversion 2.36 2016-12-10 18:49:13 +08:00
os-cells.inc api-ref: mark os-cells as deprecated 2019-02-13 13:19:06 -05:00
os-certificates.inc Remove "DEPRECATED" tag from Obsolete APIs 2018-07-18 22:23:45 -04:00
os-cloudpipe.inc Remove "DEPRECATED" tag from Obsolete APIs 2018-07-18 22:23:45 -04:00
os-consoles.inc Add description for /consoles 2017-03-29 01:37:56 +08:00
os-fixed-ips.inc Remove "DEPRECATED" tag from Obsolete APIs 2018-07-18 22:23:45 -04:00
os-flavor-access.inc Verify project id for flavor access calls 2017-05-04 18:23:17 -04:00
os-flavor-extra-specs.inc api-ref: fix link to flavor extra specs docs 2019-02-06 14:49:18 -05:00
os-floating-ip-dns.inc Remove "DEPRECATED" tag from Obsolete APIs 2018-07-18 22:23:45 -04:00
os-floating-ip-pools.inc Update API reference for os-floating-ip-pools 2018-06-26 09:47:23 -04:00
os-floating-ips-bulk.inc Remove "DEPRECATED" tag from Obsolete APIs 2018-07-18 22:23:45 -04:00
os-floating-ips.inc api-ref: Fix wrong bold decoration 2018-09-25 16:06:57 +09:00
os-fping.inc Remove "DEPRECATED" tag from Obsolete APIs 2018-07-18 22:23:45 -04:00
os-hosts.inc Update the documentation links 2017-11-28 11:07:36 +08:00
os-hypervisors.inc api-ref: typo service.disable_reason 2019-03-05 16:58:13 +08:00
os-instance-actions.inc Resource retrieving: add changes-before filter 2018-09-19 09:56:56 -04:00
os-instance-usage-audit-log.inc api-ref: Fix description of os-instance-usage-audit-log 2016-12-14 11:22:50 -05:00
os-interface.inc Add microversion to expose virtual device tags 2019-02-21 13:38:51 +00:00
os-keypairs.inc api-ref: Fix keypair API parameters 2017-03-10 15:58:06 +09:00
os-migrations.inc api-ref: Add a description about sort order 2018-11-09 23:56:56 +00:00
os-networks.inc Repair links in Nova documentation 2017-05-23 17:17:52 +07:00
os-quota-class-sets.inc api-ref: sort parameters for limits, quotas and quota classes 2017-12-18 13:40:13 -05:00
os-quota-sets.inc api-ref: sort parameters for limits, quotas and quota classes 2017-12-18 13:40:13 -05:00
os-security-group-default-rules.inc Better wording for micorversion 2.36 2016-12-10 18:49:13 +08:00
os-security-group-rules.inc Complete the api-ref of security group rule 2018-07-12 07:12:20 +00:00
os-security-groups.inc Add 'all_tenants' for GET sec group api ref 2017-11-28 05:37:15 +00:00
os-server-external-events.inc enhance api-ref for os-server-external-events 2017-09-15 06:19:49 +08:00
os-server-groups.inc Add microversion info in the os-server-groups API samples 2018-08-07 22:47:44 +00:00
os-server-password.inc API Ref: update server_id params 2016-11-11 14:01:51 -05:00
os-server-tags.inc api-ref: Remove unnecessary minimum microversion 2018-10-25 16:37:21 +09:00
os-services.inc Block deleting compute services with in-progress migrations 2019-11-25 11:11:13 -05:00
os-simple-tenant-usage.inc Merge "api-ref: microversion 2.40 overview" 2017-01-06 13:20:10 +00:00
os-tenant-network.inc Repair links in Nova documentation 2017-05-23 17:17:52 +07:00
os-virtual-interfaces.inc Remove "DEPRECATED" tag from Obsolete APIs 2018-07-18 22:23:45 -04:00
os-volume-attachments.inc Block swap volume on volumes with >1 rw attachment 2019-05-30 20:59:55 +00:00
os-volumes.inc Repair links in Nova documentation 2017-05-23 17:17:52 +07:00
parameters.yaml Merge "Fix the server group "policy" field type in api-ref" into stable/stein 2019-09-18 17:30:55 +00:00
request-ids.inc api-ref: Add X-Openstack-Request-Id description 2017-07-10 14:03:14 +00:00
server-migrations.inc Fix up force live migration completion docs 2018-12-14 15:13:59 -05:00
server-security-groups.inc api-ref: Fix parameters in server-security-groups 2017-07-10 14:02:13 +00:00
servers-action-console-output.inc Fix 'server' and 'instance' occurrence in api-ref 2017-03-28 02:54:11 +00:00
servers-action-crash-dump.inc remove /v2.1/{tenant_id} from all urls 2016-06-03 08:47:33 -04:00
servers-action-deferred-delete.inc remove /v2.1/{tenant_id} from all urls 2016-06-03 08:47:33 -04:00
servers-action-evacuate.inc API: Remove evacuate/live-migrate 'force' parameter 2019-02-08 17:05:19 -05:00
servers-action-fixed-ip.inc Deprecate Multinic, floatingip action and os-virtual-interface API 2017-04-25 12:04:05 -04:00
servers-action-remote-consoles.inc api-ref: Complete all the verifications of remote consoles 2017-03-23 10:51:13 +08:00
servers-action-shelve.inc api-ref: fix unshelve asynchronous postconditions typo 2017-06-19 09:24:52 -04:00
servers-actions.inc Adds the server group info into show server detail API. 2019-02-28 14:22:46 -05:00
servers-admin-action.inc API: Remove evacuate/live-migrate 'force' parameter 2019-02-08 17:05:19 -05:00
servers-remote-consoles.inc Fix typo 2017-07-13 11:40:43 +08:00
servers.inc Adds the server group info into show server detail API. 2019-02-28 14:22:46 -05:00
urls.inc [api-ref] Minor text clean-up, formatting 2016-11-29 12:31:46 -05:00
versions.inc Fix version details API does not return 200 OK 2018-11-08 16:03:33 +08:00