From ef7036d7cc5b6a621d30a9277b4b80a8cfea9748 Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 19 Feb 2026 22:21:20 +0000 Subject: [PATCH 1/3] fix: add readiness probe to PNI checker and correct WaitForRunningPods timeout - Add readiness probe to pni_readiness_checker pod so WaitForRunningPods waits until PNIs are actually Ready, not just until the pod is Running - Touch /tmp/ready sentinel file only after all PNIs reach Ready state - Change WaitForRunningPods timeout from 11m to 2m to match operationTimeout used by other steps in the loop --- .../config/pni_readiness_checker_unified_template.yaml | 10 ++++++++++ .../swiftv2_deployment_dynamicres_scale_config.yaml | 2 +- .../swiftv2_deployment_staticres_scale_config.yaml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/python/clusterloader2/swiftv2-slo/config/pni_readiness_checker_unified_template.yaml b/modules/python/clusterloader2/swiftv2-slo/config/pni_readiness_checker_unified_template.yaml index 5475ede789..aa460e4a88 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/pni_readiness_checker_unified_template.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/pni_readiness_checker_unified_template.yaml @@ -40,6 +40,9 @@ spec: if [ "$READY_COUNT" -ge "$NUM_PNIS" ]; then echo "All PNIs are ready!" + touch /tmp/ready + # Keep pod running so CL2 can detect readiness via probe + sleep 60 exit 0 fi @@ -49,6 +52,13 @@ spec: echo "Timeout reached after ${TIMEOUT}s - $READY_COUNT/$NUM_PNIS PNIs ready" exit 1 + readinessProbe: + exec: + command: + - cat + - /tmp/ready + initialDelaySeconds: 5 + periodSeconds: 5 resources: requests: cpu: 10m diff --git a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml index adf7bb5b39..8a75bc9850 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml @@ -87,7 +87,7 @@ steps: Params: desiredPodCount: 1 labelSelector: app=pni-readiness-checker - timeout: 11m + timeout: 2m - name: Delete PNI Readiness Checker phases: - namespaceRange: diff --git a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml index 910e5b3446..3148f2edcb 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml @@ -100,7 +100,7 @@ steps: Params: desiredPodCount: 1 labelSelector: app=pni-readiness-checker - timeout: 11m + timeout: 2m - name: Delete PNI Readiness Checker -{{$j}} phases: - namespaceRange: From ab9a51118fe3b2bc9a2f19d25457a45d9f7bd5a3 Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 19 Feb 2026 22:35:07 +0000 Subject: [PATCH 2/3] fix: increase PNI readiness checker timeout to 5m --- .../config/swiftv2_deployment_dynamicres_scale_config.yaml | 2 +- .../config/swiftv2_deployment_staticres_scale_config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml index 8a75bc9850..20a90641e6 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml @@ -87,7 +87,7 @@ steps: Params: desiredPodCount: 1 labelSelector: app=pni-readiness-checker - timeout: 2m + timeout: 5m - name: Delete PNI Readiness Checker phases: - namespaceRange: diff --git a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml index 3148f2edcb..fb74f5d53f 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml @@ -100,7 +100,7 @@ steps: Params: desiredPodCount: 1 labelSelector: app=pni-readiness-checker - timeout: 2m + timeout: 5m - name: Delete PNI Readiness Checker -{{$j}} phases: - namespaceRange: From dd0078ec62881ba1ccb6fa226d4b45471d0409f6 Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 20 Feb 2026 01:13:07 +0000 Subject: [PATCH 3/3] fix: grant PNI list/get permissions to reporter service account The PNI readiness checker pod was unable to list podnetworkinstances due to missing RBAC permissions on the reporter-sa-0 service account. The kubectl errors were silently suppressed by 2>/dev/null, causing the script to always report 'No PNIs found'. Add get/list verbs for podnetworkinstances in the multitenancy.acn.azure.com API group to the reporter Role. --- .../swiftv2-slo/config/reporter_role_template.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/python/clusterloader2/swiftv2-slo/config/reporter_role_template.yaml b/modules/python/clusterloader2/swiftv2-slo/config/reporter_role_template.yaml index 2ccf5f6e9f..538f805304 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/reporter_role_template.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/reporter_role_template.yaml @@ -7,3 +7,6 @@ rules: - apiGroups: [""] resources: ["pods"] verbs: ["get", "patch"] +- apiGroups: ["multitenancy.acn.azure.com"] + resources: ["podnetworkinstances"] + verbs: ["get", "list"]