nova/nova/api/openstack/compute
Sivasathurappan Radhakrishnan 8ebdd91d46 Return 400 when compute host is not found
Previously user was getting a 500 error code for ComputeHostNotFound
if they are using latest microversion that does live migration in
async. This patches changes return response to 400 as 500 internal
server error should not be returned to the user for failures due to
user error that can be fixed by changing to request on client side.

Change-Id: I7a9de211ecfaa7f2816fbf8bcd73ebbdd990643c
closes-bug:1643623
(cherry picked from commit fb68fd12e2)
2018-03-08 06:24:09 +00:00
..
schemas Fix 'force' parameter in os-quota-sets PUT schema 2017-12-07 09:39:07 -05:00
views Fix policy check performance in 2.47+ 2017-09-27 17:14:48 -04:00
__init__.py Use plain routes list for '/servers' endpoint instead of stevedore 2017-04-25 22:38:33 +08:00
admin_actions.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
admin_password.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
agents.py Use plain routes list for os-agents endpoint instead of stevedore 2017-05-01 20:31:17 +03:00
aggregates.py Use plain routes list for '/os-aggregates' endpoint instead of stevedore 2017-04-25 22:38:37 +08:00
assisted_volume_snapshots.py Use plain routes list for os-assisted-volume-snapshots endpoint 2017-05-01 20:59:26 +03:00
attach_interfaces.py API support for tagged device attachment 2017-06-30 09:05:34 +03:00
availability_zone.py Use plain routes list for os-availability-zone endpoint instead of stevedore 2017-05-01 22:02:45 +03:00
baremetal_nodes.py Use plain routes list for os-baremetal-nodes endpoint instead of stevedore 2017-07-12 20:58:55 +08:00
block_device_mapping.py Remove nova.api.extensions.server.extensions usage 2017-07-06 10:58:33 +08:00
block_device_mapping_v1.py Remove the useless extension block_device_mapping_v1 object 2017-07-25 17:58:46 +00:00
cells.py Use plain routes list for os-cells endpoint instead of stevedore 2017-07-04 00:07:40 +00:00
certificates.py Use plain routes list for os-certificates endpoint instead of stevedore 2017-05-22 18:02:23 +08:00
cloudpipe.py Use plain routes list for os-cloudpipe endpoint instead of stevedore 2017-06-19 16:44:19 +01:00
config_drive.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
console_auth_tokens.py Use plain routes list for os-consoles, os-console-auth-tokens endpoint instead of stevedore 2017-06-12 15:48:19 +01:00
console_output.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
consoles.py Use plain routes list for os-consoles, os-console-auth-tokens endpoint instead of stevedore 2017-06-12 15:48:19 +01:00
create_backup.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
deferred_delete.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
evacuate.py Ensure the JSON-Schema covers the legacy v2 API 2017-06-30 07:25:05 +00:00
extended_availability_zone.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
extended_server_attributes.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
extended_status.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
extended_volumes.py Fix getting instance bdms in multiple cells 2017-08-04 10:44:56 -04:00
extension_info.py Use plain routes list for extension_info instead of stevedore 2017-07-18 22:57:00 +08:00
fixed_ips.py Use plain routes list for os-fixed-ips endpoint instead of stevedore 2017-05-01 19:05:18 +00:00
flavor_access.py Verify project id for flavor access calls 2017-05-04 18:23:17 -04:00
flavor_manage.py Add policy granularity to the Flavors API 2017-07-19 15:56:47 -04:00
flavor_rxtx.py Use plain routes list for flavor endpoint instead of stevedore[1] 2017-04-25 22:38:37 +08:00
flavors.py Use plain routes list for flavor endpoint instead of stevedore[1] 2017-04-25 22:38:37 +08:00
flavors_extraspecs.py Use plain routes list for flavors-extraspecs endpoint instead of stevedore 2017-04-25 22:38:37 +08:00
floating_ip_dns.py Use plain routes list for os-floating-ip-dns endpoint instead of stevedore 2017-05-01 20:03:20 +03:00
floating_ip_pools.py Use plain routes list for os-floating-ip-pools endpoint instead of stevedore 2017-05-01 19:01:16 +03:00
floating_ips.py remove get_nw_info_for_instance from compute.utils 2017-06-13 13:30:06 +02:00
floating_ips_bulk.py Use plain routes list for os-floating-ips-bulk endpoint instead of stevedore 2017-05-01 19:22:14 +03:00
fping.py Use plain routes list for os-fping endpoint 2017-06-07 14:25:58 +08:00
helpers.py remove personality extension 2016-06-24 14:44:53 -04:00
hide_server_addresses.py Fix instance lookup in hide_server_addresses extension 2017-11-10 23:42:55 +00:00
hosts.py Use plain routes list for hosts endpoint instead of stevedore 2017-06-07 14:25:58 +08:00
hypervisors.py Handle uuids in os-hypervisors API 2017-07-18 17:08:01 -04:00
image_metadata.py Use plain routes list for image-metadata instead of stevedore 2017-07-12 20:57:46 +08:00
image_size.py Use plain routes list for images instead of stevedore 2017-07-12 20:57:33 +08:00
images.py Use plain routes list for images instead of stevedore 2017-07-12 20:57:33 +08:00
instance_actions.py Add ability to signal and perform online volume size change 2017-07-12 11:53:20 -04:00
instance_usage_audit_log.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00
ips.py Use plain routes list for server ips endpoint 2017-06-07 14:25:58 +08:00
keypairs.py Remove nova.api.extensions.server.extensions usage 2017-07-06 10:58:33 +08:00
limits.py Use plain routes list for limits endpoint instead of stevedore 2017-05-24 14:29:07 +08:00
lock_server.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
migrate_server.py Return 400 when compute host is not found 2018-03-08 06:24:09 +00:00
migrations.py Use plain routes list for os-migrations endpoint instead of stevedore 2017-05-27 10:12:52 +00:00
multinic.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
multiple_create.py Remove multiple create from stevedore 2017-06-19 16:49:34 +01:00
networks.py Use plain routes list for os-networks instead of stevedore 2017-07-12 17:36:35 +08:00
networks_associate.py Use plain routes list for os-networks instead of stevedore 2017-07-12 17:36:35 +08:00
pause_server.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
quota_classes.py Make Quotas object favor the API database 2017-07-20 21:02:18 +00:00
quota_sets.py Use plain routes list for os-quota-sets endpoint instead of stevedore 2017-05-22 18:02:23 +08:00
remote_consoles.py Use plain routes list for os-remote-consoles instead of stevedore 2017-06-19 16:49:34 +01:00
rescue.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
rest_api_version_history.rst Fix 'force' parameter in os-quota-sets PUT schema 2017-12-07 09:39:07 -05:00
routes.py Move the note about '/os-volume_boot' to the correct place 2017-07-26 19:33:10 +00:00
scheduler_hints.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
security_group_default_rules.py Use plain routes list for os-security-group-default-rules instead of stevedore 2017-07-12 20:58:40 +08:00
security_groups.py Use plain routes list for os-security-group-rules instead of stevedore 2017-07-12 20:58:26 +08:00
server_diagnostics.py Fixed some nits for microversion 2.48 2017-06-06 13:34:17 +00:00
server_external_events.py Fix and optimize external_events for multiple cells 2017-07-19 17:59:26 -04:00
server_groups.py Ensure the JSON-Schema covers the legacy v2 API 2017-06-30 07:25:05 +00:00
server_metadata.py Use plain routes list for server-metadata endpoint instead of stevedore 2017-05-03 02:45:17 +00:00
server_migrations.py Use plain routes list for server-migrations endpoint instead of stevedore 2017-06-01 11:47:51 +01:00
server_password.py Use plain routes list for server-password endpoint instead of stevedore 2017-05-17 09:32:31 +08:00
server_tags.py Send out notifications when instance tags changed 2017-06-06 12:53:28 -04:00
server_usage.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
servers.py Support tag instances when boot(4/4) 2017-07-17 15:59:42 -04:00
services.py Use uuid for id in os-services API 2017-07-18 15:39:57 -04:00
shelve.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
simple_tenant_usage.py Move to proper target_cell calling convention 2017-05-23 08:12:42 -07:00
suspend_server.py Totally freeze the extension_info API 2017-05-08 16:32:48 +08:00
tenant_networks.py Count networks to check quota 2017-06-19 21:51:46 +00:00
used_limits.py Remove 'reserved' count from used limits 2017-07-18 17:31:15 +00:00
user_data.py Use plain routes list for user_data instead of stevedore 2017-06-13 14:04:00 +00:00
versions.py Remove unused conf 2016-09-02 09:02:23 +08:00
versionsV21.py Use plain routes list for versions instead of stevedore 2017-07-21 17:39:46 +08:00
virtual_interfaces.py use plain routes list for os-virtual-interfaces 2017-06-07 14:25:58 +08:00
volumes.py Merge "Remove check_detach" 2017-07-25 10:40:49 +00:00
wsgi.py Add pbr-installed wsgi application for metadata api 2017-05-02 16:58:11 +00:00