NSXv: LB pool delete failure while binding missing

When pool binding is missing, LBaaS call shouldn't fail, but
exit gracefully.

Change-Id: I6174880f38f8ebbe4def931053ee47880a89426c
(cherry picked from commit 9088cb2b31)
This commit is contained in:
Kobi Samoray 2017-06-26 16:47:27 +03:00 committed by garyk
parent d75ef535f7
commit b1681aca9f
1 changed files with 5 additions and 0 deletions

View File

@ -131,6 +131,11 @@ class EdgePoolManager(base_mgr.EdgeLoadbalancerBaseManager):
context.session, lb_id, pool.id)
edge_id = lb_binding['edge_id']
if not pool_binding:
self.lbv2_driver.pool.successful_completion(
context, pool, delete=True)
return
edge_pool_id = pool_binding['edge_pool_id']
try: