Bug 1731174 - Neutron cleanup fails sometimes due to 404 response
Summary: Neutron cleanup fails sometimes due to 404 response
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tempest
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z4
: 14.0 (Rocky)
Assignee: Slawek Kaplonski
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On: 1731173 1731176
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-18 14:15 UTC by Slawek Kaplonski
Modified: 2019-11-06 16:53 UTC (History)
5 users (show)

Fixed In Version: openstack-tempest-19.0.0-5.el7ost
Doc Type: No Doc Update
Doc Text:
Clone Of: 1731173
Environment:
Last Closed: 2019-11-06 16:53:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1824018 0 None None None 2019-07-22 09:00:32 UTC
OpenStack gerrit 653155 0 None master: MERGED tempest: Handle properly 404 responses from Neutron (I2c394d3219e16f653343d7043d36f55048f211dd) 2019-08-22 11:35:02 UTC
Red Hat Product Errata RHBA-2019:3747 0 None None None 2019-11-06 16:53:41 UTC

Description Slawek Kaplonski 2019-07-18 14:15:33 UTC
+++ This bug was initially created as a clone of Bug #1731173 +++

It may happen that cleanup of neutron resources (e.g. network, subnet, port or router) may fail because DELETE request will be processed for very long time by neutron and retried request will got response 404.

To avoid such failures cleanup should handle 404 response as something "normal" and not fail then.

Comment 3 Martin Kopec 2019-10-06 09:29:49 UTC
The fix is present in the Fixed in version package.

Exact verification of this BZ is hard because as it's said here, it was happening only sometimes. However, adding a logic which ignores NotFound errors on DELETE requests (if the resource is not there at the time of its deletion, it can be considered as deleted successfully) should logically solve the described issue. I reviewed the code and checked upstream comments to the issue as well and it seems the change is done on all required places.
So, I'm moving this to VERIFIED.

Comment 5 errata-xmlrpc 2019-11-06 16:53:25 UTC
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-2019:3747


Note You need to log in before you can comment on or make changes to this bug.