neutron/neutron/plugins/ml2/drivers/ovn
Lucas Alvares Gomes ef2260441d [OVN] Do not delete port's revision on RowNotFound
The delete_port() method from OVNClient has a potential problem of
leaving stale ports when RowNotFound is raised from the process to
delete the port from the OVN database. Since the exception is not
granular enough, the RowNotFound could be raised from other objects that
are part of the same transaction (such as ACLs, DNS entries, etc...)
resulting in the revision for the port being deleted even tho the port
is still in the database.

Instead of giving a pass on the RowNotFound exception, this patch is
logging the error and re-raising it without deleting the revision.

Change-Id: I25b93b7c080403fc38365b638e4e03298b447d0f
Partial-Bug: #1874733
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2020-04-27 11:58:43 +01:00
..
mech_driver [OVN] Do not delete port's revision on RowNotFound 2020-04-27 11:58:43 +01:00
__init__.py [OVN] Import ovsdb related code 2019-12-04 13:18:50 +00:00