NSXv: Handle LBaaSv2 listener inconsistency

When backend is inconsistent with Neutron DB, resume LB listener deletion.

Change-Id: Iedf65d17468b66cf01427fc16394201d83084b2f
This commit is contained in:
Kobi Samoray 2017-12-12 13:31:44 +02:00
parent c1ee02253f
commit a3b33ee499

View File

@ -288,10 +288,7 @@ class EdgeListenerManager(base_mgr.EdgeLoadbalancerBaseManager):
except vcns_exc.ResourceNotFound:
LOG.error('vip not found on edge: %s', edge_id)
except vcns_exc.VcnsApiException:
with excutils.save_and_reraise_exception():
self.lbv2_driver.listener.failed_completion(context,
listener)
LOG.error('Failed to delete vip on edge: %s', edge_id)
LOG.error('Failed to delete vip on edge: %s', edge_id)
try:
with locking.LockManager.get_lock(edge_id):
@ -299,12 +296,7 @@ class EdgeListenerManager(base_mgr.EdgeLoadbalancerBaseManager):
except vcns_exc.ResourceNotFound:
LOG.error('app profile not found on edge: %s', edge_id)
except vcns_exc.VcnsApiException:
with excutils.save_and_reraise_exception():
self.lbv2_driver.listener.failed_completion(context,
listener)
LOG.error(
'Failed to delete app profile on Edge: %s',
edge_id)
LOG.error('Failed to delete app profile on Edge: %s', edge_id)
nsxv_db.del_nsxv_lbaas_listener_binding(context.session, lb_id,
listener.id)