nova/nova/api/openstack/compute
Matt Riedemann a05ef30fb9 Make API always RPC cast to conductor for resize/migrate
This is a follow up to [1] to make the API behave consistently
by always asynchronously casting to conductor during resize
and cold migration regardless of same-cell or cross-cell
migration.

From the end user point of view, not much changes besides
the possibility of some exceptions occurring during scheduling
which would have resulted in a 400 BadRequest error.
The user still gets a 202 response, must poll the server status
until the server goes to VERIFY_RESIZE status or times out, and
can check the instance actions if the resize/migrate fails.

The specific errors that can occur are not really an API contract
and as such end user applications should not be building logic
around, for example, getting a NoValidHost error. It should be
noted, however, that by default non-admin users cannot see
the instance action event traceback that would contain the
error, e.g. NoValidHost.

The only exception types removed from handling in the API are
(1) AllocationMoveFailed which can be raised when the conductor
MigrationTask runs replace_allocation_with_migration and
(2) NoValidHost when the scheduler is called to select destinations.

Because of this, quite a few functional negative tests have to be
adjusted since the API no longer returns a 400 for NoValidHost and
other errors that can happen during scheduling.

Finally, the do_cast kwarg is left on the conductor API method since
the compute service calls it during same-cell reschedule as a
synchronous RPC call and has error handling if rescheduling in
conductor fails.

[1] I098f91d8c498e5a85266e193ad37c08aca4792b2

Change-Id: I711e56bcb4b72605253fa63be230a68e03e45b84
2019-11-13 10:19:53 -05:00
..
schemas Add image caching API for aggregates 2019-10-15 21:22:31 -04:00
views Add new policy rule for viewing host status UNKNOWN 2019-10-28 15:40:08 +00:00
__init__.py Use plain routes list for '/servers' endpoint instead of stevedore 2017-04-25 22:38:33 +08:00
admin_actions.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
admin_password.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
agents.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
aggregates.py Add image caching API for aggregates 2019-10-15 21:22:31 -04:00
assisted_volume_snapshots.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
attach_interfaces.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
availability_zone.py Remove nova.compute.*API() shims 2019-06-12 16:09:46 +01:00
baremetal_nodes.py Remove unused methods 2019-09-04 15:26:59 +09:00
cells.py Remove '/os-cells' REST APIs 2019-04-16 18:26:13 +01:00
certificates.py Remove extensions module 2017-12-20 11:35:38 +08:00
cloudpipe.py Remove extensions module 2017-12-20 11:35:38 +08:00
console_auth_tokens.py Remove nova-consoleauth 2019-07-05 15:04:47 +00:00
console_output.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
consoles.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
create_backup.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
deferred_delete.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
evacuate.py Enable evacuation with qos ports 2019-10-25 16:14:22 +00:00
extension_info.py Remove unused methods 2019-09-04 15:26:59 +09:00
fixed_ips.py Remove support for /os-fixed-ips REST API 2018-06-26 09:20:28 -04:00
flavor_access.py Remove extensions module 2017-12-20 11:35:38 +08:00
flavor_manage.py Add missing tests for flavor extra_specs mv 2.61 2019-06-28 04:10:13 +00:00
flavors.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
flavors_extraspecs.py Remove extensions module 2017-12-20 11:35:38 +08:00
floating_ip_dns.py Remove support for /os-floating-ip-dns REST API 2018-07-18 22:23:45 -04:00
floating_ip_pools.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
floating_ips.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
floating_ips_bulk.py Remove support for /os-floating-ips-bulk REST API 2018-07-18 22:23:45 -04:00
fping.py Remove support for /os-fping REST API 2018-05-10 15:26:13 -04:00
helpers.py remove personality extension 2016-06-24 14:44:53 -04:00
hosts.py Remove nova-consoleauth 2019-07-05 15:04:47 +00:00
hypervisors.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
image_metadata.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
images.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
instance_actions.py Remove nova.compute.*API() shims 2019-06-12 16:09:46 +01:00
instance_usage_audit_log.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
ips.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
keypairs.py Adds view builders for keypairs controller 2019-10-22 18:02:45 +00:00
limits.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
lock_server.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
migrate_server.py Make API always RPC cast to conductor for resize/migrate 2019-11-13 10:19:53 -05:00
migrations.py Filter migrations by user_id/project_id 2019-10-14 11:35:11 -07:00
multinic.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
networks.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
networks_associate.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
pause_server.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
quota_classes.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
quota_sets.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
remote_consoles.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
rescue.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
rest_api_version_history.rst Merge "api-ref: remove mention about os-migrations no longer being extended" 2019-10-30 19:28:25 +00:00
routes.py Add image caching API for aggregates 2019-10-15 21:22:31 -04:00
security_group_default_rules.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
security_groups.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
server_diagnostics.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
server_external_events.py API microversion 2.76: Add 'power-update' external event 2019-08-15 13:19:44 -04:00
server_groups.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
server_metadata.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
server_migrations.py Merge "Remove compute compat checks for aborting queued live migrations" 2019-10-23 08:08:36 +00:00
server_password.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
server_tags.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
server_topology.py Add server sub-resource topology API 2019-08-30 10:04:56 +08:00
servers.py Make API always RPC cast to conductor for resize/migrate 2019-11-13 10:19:53 -05:00
services.py Merge "Remove @safe_connect from _delete_provider" 2019-10-09 22:49:12 +00:00
shelve.py Use admin neutron client to see if instance has qos ports 2019-11-06 15:54:03 -05:00
simple_tenant_usage.py Multiple API cleanup changes 2019-08-12 08:52:38 -05:00
suspend_server.py Reject live migration and suspend on SEV guests 2019-09-10 13:59:02 +01:00
tenant_networks.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
versions.py Merge ResourceV21 obj into Resource obj 2017-12-21 19:33:35 +08:00
versionsV21.py Remove extensions module 2017-12-20 11:35:38 +08:00
virtual_interfaces.py Remove support for /os-virtual-interfaces REST API 2018-06-06 21:14:39 +00:00
volumes.py Add delete_on_termination to volume-attach API 2019-09-05 20:54:56 +08:00
wsgi.py Add pbr-installed wsgi application for metadata api 2017-05-02 16:58:11 +00:00