You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
setup-ocp.sh: AB2 sandbox-pool readiness poll spins full timeout (queries a podTemplate label on the Sandbox CR) #103
But the sh.kagenti.io/sandbox-pool=default label lives on the pod template
(podTemplate.metadata.labels) in sandbox-pool-ab2.yaml, not on the Sandbox CR itself (whose
only label is app: sandbox). So kubectl get sandbox -l sh.kagenti.io/sandbox-pool=default returns 0 rows, ab2_want stays 0, the poll loop's [ "$ab2_want" -gt 0 ] break condition is never
met, and the loop runs its full ~150×2s ≈ 5 minute budget before falling through to the
authoritative kubectl wait --for=condition=Ready.
Impact
Correctness is unaffected — the authoritative wait still gates properly — but every SH_AUTHBRIDGE=1 OCP run wastes up to ~5 minutes in the pre-poll.
Fix
Count the Sandbox CRs by a label they actually carry, or by count:
ab2_want=$(( $(kubectl get sandbox -n "$NAMESPACE" -l app=sandbox --no-headers | wc -l) *2))# or simply: kubectl get sandbox --no-headers | wc -l
Notes
Found during the RC1-4 OCP live gate. The gate wrapper rc1-ocp-gate.sh correctly waits on pod
labels, so it is not affected.
Activity
fix: count AB2 sandbox pool CRs by app=sandbox in setup-ocp.sh pre-poll