Ignore update_lbaas_sg() failure on NP deletion
fixed that for `on_present()`,
but apparently it's possible to happen on `on_finalize()` too, so this
commit makes sure we ignore ResourceNotFound exception there.
Closes-Bug:
@@ -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)
+ 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)
