Fix scenraio when LB or Pool is not ready

The patch is to fix a scenario when LB or Pool ID
is not available while attempting to reconcile members.

Change-Id: I3d6e09f0a17228994032eba2fecf9f7663e6cf14
This commit is contained in:
Sunday Mgbogu 2022-08-30 17:57:10 +01:00 committed by Maysa de Macedo Souza
parent e5a94aef46
commit 1569ccfd69
1 changed files with 2 additions and 0 deletions

View File

@ -1652,6 +1652,8 @@ class BaseReconciliationScenarioTest(BaseKuryrScenarioTest):
new_resource_id = listeners[0].get('id')
else:
new_resource_id = status.get(resource, {}).get('id')
if new_resource_id is None:
continue
new_lb_members = status.get('members', [])
if (new_resource_id == resource_id or new_resource_id is None
or len(svc_pods) != len(new_lb_members)):