Merge "Ignore update_lbaas_sg() failure on NP deletion"

This commit is contained in:
Zuul 2020-08-13 15:43:17 +00:00 committed by Gerrit Code Review
commit 8691b67516
1 changed files with 6 additions and 1 deletions

View File

@ -300,7 +300,12 @@ class KuryrNetworkPolicyHandler(k8s_base.ResourceEventHandler):
self._is_service_affected(svc, pods_to_update)):
continue
sgs = self._drv_svc_sg.get_security_groups(svc, project_id)
self._drv_lbaas.update_lbaas_sg(svc, sgs)
try:
self._drv_lbaas.update_lbaas_sg(svc, sgs)
except exceptions.ResourceNotReady:
# We can ignore LB that's being created - its SGs will
# get handled when members will be getting created.
pass
self._drv_policy.delete_np_sg(crd_sg)