nova/nova/api/openstack/compute
Guillaume Espanel 1052ad4d5a Catch neutronclient.NotFound on floating deletion
In some cases, trying to delete a floating IP multiple times in a short
delay can trigger an exception beacause the floating ip deletion
operation is not atomic. If neutronclient's call to delete fails with a
NotFound error, we raise a 404 error to nova's client instead of a 500.

Change-Id: I49ea7e52073148457e794d641ed17d4ef58616f8
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Closes-Bug: #1649852
(cherry picked from commit d99197aece)
2017-06-06 23:10:04 +00:00
..
schemas Allow None for block_device_mapping_v2.boot_index 2017-02-09 15:20:06 +00:00
views Merge "Merge v21 view builder for flavor API" 2017-01-12 03:05:05 +00:00
__init__.py Remove unused init_only kwarg from wsgi app init 2016-12-29 21:51:03 -05:00
admin_actions.py Move get_instance() calls from try-except block 2016-10-04 13:29:08 -07:00
admin_password.py Allow authorization by user_id for server changePassword action 2016-08-12 12:51:45 +00:00
agents.py policy: Replaces 'authorize' in nova-api (part 1) 2016-06-24 15:57:10 +03:00
aggregates.py Return uuid attribute for aggregates 2017-01-05 14:32:43 -05:00
assisted_volume_snapshots.py policy: Replaces 'authorize' in nova-api (part 1) 2016-06-24 15:57:10 +03:00
attach_interfaces.py remove NetworkDuplicated exception 2016-11-28 01:22:10 +08:00
availability_zone.py policy: Replaces 'authorize' in nova-api (part 1) 2016-06-24 15:57:10 +03:00
baremetal_nodes.py Merge "Remove deprecated ironic.api_version config option" 2016-07-27 14:27:30 +00:00
block_device_mapping.py Fix tag attribute disappearing in 2.33 and 2.37 2017-01-30 19:38:46 -05:00
block_device_mapping_v1.py Filter leading/trailing spaces for name field in v2.1 compat mode 2015-09-23 10:27:54 +01:00
cells.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
certificates.py policy: Replaces 'authorize' in nova-api (part 2) 2016-06-27 13:18:03 +00:00
cloudpipe.py policy: Replaces 'authorize' in nova-api (part 2) 2016-06-27 13:18:03 +00:00
config_drive.py policy: Replaces 'authorize' in nova-api (part 2) 2016-06-27 13:18:03 +00:00
console_auth_tokens.py policy: Replaces 'authorize' in nova-api (part 2) 2016-06-27 13:18:03 +00:00
console_output.py policy: Replaces 'authorize' in nova-api (part 2) 2016-06-27 13:18:03 +00:00
consoles.py policy: Replaces 'authorize' in nova-api (part 2) 2016-06-27 13:18:03 +00:00
create_backup.py [proxy-api] microversion 2.39 deprecates image-metadata proxy API 2016-12-07 19:22:43 +03:00
deferred_delete.py Add handle for 2 exceptions in force_delete 2016-11-17 11:35:35 +08:00
evacuate.py Fix the evacuate API without json-schema validation in 2.13 2017-04-20 23:28:43 +08:00
extended_availability_zone.py policy: Replaces 'authorize' in nova-api (part 2) 2016-06-27 13:18:03 +00:00
extended_server_attributes.py Return HTTP 200 on list for invalid status 2016-06-30 16:09:53 +00:00
extended_status.py Merge "Remove unnecessary __init__" 2016-06-27 17:04:31 +00:00
extended_volumes.py Merge "Remove unnecessary __init__" 2016-06-27 17:04:31 +00:00
extension_info.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
fixed_ips.py Deprecate FixedIP related proxy APIs 2016-07-21 13:31:16 +08:00
flavor_access.py Remove AdminRequired usage in flavor 2016-11-28 21:03:44 +08:00
flavor_manage.py Merge v21 view builder for flavor API 2016-12-05 17:46:10 +09:00
flavor_rxtx.py policy: Replaces 'authorize' in nova-api (part 3) 2016-06-28 23:11:10 +00:00
flavors.py Merge v21 view builder for flavor API 2016-12-05 17:46:10 +09:00
flavors_extraspecs.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
floating_ip_dns.py Deprecated floating ip related proxy APIs 2016-07-26 14:14:44 +08:00
floating_ip_pools.py Deprecated floating ip related proxy APIs 2016-07-26 14:14:44 +08:00
floating_ips.py Catch neutronclient.NotFound on floating deletion 2017-06-06 23:10:04 +00:00
floating_ips_bulk.py Deprecated floating ip related proxy APIs 2016-07-26 14:14:44 +08:00
fping.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
helpers.py remove personality extension 2016-06-24 14:44:53 -04:00
hide_server_addresses.py conf: Move api options to a group 2016-11-25 16:32:31 -06:00
hosts.py policy: Replaces 'authorize' in nova-api (part 3) 2016-06-28 23:11:10 +00:00
hypervisors.py Handle ComputeHostNotFound when listing hypervisors 2016-12-05 16:37:26 -05:00
image_metadata.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
image_size.py policy: Replaces 'authorize' in nova-api (part 3) 2016-06-28 23:11:10 +00:00
images.py Depracate Images Proxy APIs 2016-07-21 00:50:36 +08:00
instance_actions.py policy: Replaces 'authorize' in nova-api (part 3) 2016-06-28 23:11:10 +00:00
instance_usage_audit_log.py Remove dead begin/end code from InstanceUsageAuditLogController 2016-12-14 11:48:35 -05:00
ips.py policy: Replaces 'authorize' in nova-api (part 3) 2016-06-28 23:11:10 +00:00
keypairs.py Use JSON-Schema to validate query parameters for keypairs API 2017-01-04 17:10:20 +08:00
limits.py Merge v20 view builder for limit API 2016-12-14 14:22:55 +00:00
lock_server.py Allow authorization by user_id for server lock action 2016-08-11 10:40:04 -04:00
migrate_server.py Move get_instance() calls from try-except block 2016-10-04 13:29:08 -07:00
migrations.py policy: Replaces 'authorize' in nova-api (part 4) 2016-06-29 12:53:04 +00:00
multinic.py policy: Replaces 'authorize' in nova-api (part 4) 2016-06-29 12:53:04 +00:00
multiple_create.py Merge "Filter leading/trailing spaces for name field in v2.1 compat mode" 2015-09-23 12:31:00 +00:00
networks.py Provide more duplicate VLAN network error info 2016-08-23 00:14:10 +00:00
networks_associate.py Deprecated networks related proxy APIs 2016-07-21 13:29:41 +08:00
pause_server.py Allow authorization by user_id for server pause action 2016-08-12 02:40:48 +00:00
pci.py policy: Replaces 'authorize' in nova-api (part 4) 2016-06-29 12:53:04 +00:00
quota_classes.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
quota_sets.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
remote_consoles.py Move get_instance() calls from try-except block 2016-10-04 13:29:08 -07:00
rescue.py conf: Move api options to a group 2016-11-25 16:32:31 -06:00
rest_api_version_history.rst Mark compute/placement REST API max microversions for Ocata 2017-02-02 20:15:18 -05:00
scheduler_hints.py Filter leading/trailing spaces for name field in v2.1 compat mode 2015-09-23 10:27:54 +01:00
security_group_default_rules.py Deprecate SecurityGroup related proxy API 2016-07-26 14:14:44 +08:00
security_groups.py Merge "Move get_instance() calls from try-except block" 2016-12-10 05:15:55 +00:00
server_diagnostics.py API: catch InstanceNotReady exception. 2016-07-07 16:48:13 +08:00
server_external_events.py Pre-load info_cache when handling external events and handle NotFound 2016-12-17 09:38:22 -05:00
server_groups.py Separate CRUD policy for server_groups 2016-11-21 11:43:13 -05:00
server_metadata.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
server_migrations.py policy: Replaces 'authorize' in nova-api (part 5) 2016-06-29 12:11:42 -07:00
server_password.py policy: Replaces 'authorize' in nova-api (part 5) 2016-06-29 12:11:42 -07:00
server_tags.py Stop allowing tags as empty string 2016-12-14 12:23:24 +00:00
server_usage.py policy: Replaces 'authorize' in nova-api (part 5) 2016-06-29 12:11:42 -07:00
servers.py Catch exception.OverQuota when create image for volume backed instance 2017-05-23 06:28:00 +00:00
services.py Remove compute host from all host aggregates when compute service is deleted 2016-07-16 22:19:44 +03:00
shelve.py Allow authorization by user_id for server shelve action 2016-08-12 12:33:39 +09:00
simple_tenant_usage.py Merge "Catch InstanceNotFound exception" 2016-12-23 15:55:50 +00:00
suspend_server.py Move get_instance() calls from try-except block 2016-10-04 13:29:08 -07:00
tenant_networks.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
used_limits.py [1/3]Replace six.iteritems() with .items() 2016-12-22 02:43:12 +00:00
user_data.py Enable 'null' value for user_data in V2.1 API 2016-05-20 14:05:43 +08:00
versions.py Remove unused conf 2016-09-02 09:02:23 +08:00
versionsV21.py Rename classes containing 'v3' to 'v21' 2015-08-18 15:25:46 +08:00
virtual_interfaces.py policy: Replaces 'authorize' in nova-api (part 5) 2016-06-29 12:11:42 -07:00
volumes.py Fix a typo in nova/api/openstack/compute/volumes.py 2016-11-23 22:18:56 +00:00