Description of problem: nova-api throw 500 HTTP response (instead of 404) for FloatingIpNotFoundForAddress exception. DELETE /v2.1/os-floating-ips/f943d767-a757-4bc3-9e9d-2d7be5370cf3 HTTP/1.1" status: 500 len: 560 time: 1.6314788 Please have a look at below logs. ~~~ 2017-08-15 06:57:10.307 5234 ERROR nova.api.openstack.extensions raise exception.FloatingIpNotFoundForAddress(address=address) 2017-08-15 06:57:10.307 5234 ERROR nova.api.openstack.extensions FloatingIpNotFoundForAddress: Floating IP not found for address 10.8.241.140. 2017-08-15 06:57:10.307 5234 ERROR nova.api.openstack.extensions 2017-08-15 06:57:10.309 5234 INFO nova.api.openstack.wsgi [req-f806b2e0-bad7-4591-809a-2a50940d2985 d1e0a9541632439288ea847aab66f30b f09d0e62c49f46a6a3b2e9911c97470a - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'nova.exception.FloatingIpNotFoundForAddress'> 2017-08-15 06:57:10.310 5234 INFO nova.osapi_compute.wsgi.server [req-f806b2e0-bad7-4591-809a-2a50940d2985 d1e0a9541632439288ea847aab66f30b f09d0e62c49f46a6a3b2e9911c97470a - default default] 172.16.108.12 "DELETE /v2.1/os-floating-ips/f943d767-a757-4bc3-9e9d-2d7be5370cf3 HTTP/1.1" status: 500 len: 560 time: 1.6314788 ~~~ Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: "DELETE /v2.1/os-floating-ips/f943d767-a757-4bc3-9e9d-2d7be5370cf3 HTTP/1.1" status: 500 Expected results: "DELETE /v2.1/os-floating-ips/f943d767-a757-4bc3-9e9d-2d7be5370cf3 HTTP/1.1" status: 404 Additional info:
Can you include more of the log please? Also, I assume this is with neutron, correct?
Looks like this needs to be backported to OSP10: commit d99197aece6451013d1de1f08c1af16832ee0e7e Author: Guillaume Espanel <guillaume.espanel> Date: Wed Dec 14 15:29:02 2016 +0100 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> Closes-Bug: #1649852 It's already on OSP11.
This was just backported to newton 13 days ago so we should get it via rebase: https://review.openstack.org/#/c/471511/
Added fixed-in-version
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2823
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days