Skip to content

Commit 25180c5

Browse files
fix(virtual-machine): bump HR readiness wait from 5s to 60s
5s was too tight under runner load — both vm-disk-$name and vm-instance-$name HR waits could miss the operator's reconcile window. Aligns with the other timeout bumps in this PR. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: Myasnikov Daniil <[email protected]>
1 parent 4a5946a commit 25180c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎hack/e2e-apps/vminstance.bats‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ EOF
2828
# Wait for the operator to materialise the HelmRelease before kubectl wait
2929
# kicks in (kubectl wait errors immediately if the object does not exist yet).
3030
timeout 60 sh -ec "until kubectl -n tenant-test get hr vm-disk-$name >/dev/null 2>&1; do sleep 2; done"
31-
kubectl -n tenant-test wait hr vm-disk-$name --timeout=5s --for=condition=ready
31+
kubectl -n tenant-test wait hr vm-disk-$name --timeout=60s --for=condition=ready
3232
kubectl -n tenant-test wait dv vm-disk-$name --timeout=250s --for=condition=ready
3333
kubectl -n tenant-test wait pvc vm-disk-$name --timeout=200s --for=jsonpath='{.status.phase}'=Bound
3434
}
@@ -77,7 +77,7 @@ EOF
7777
# routinely takes 30-60s under runner load; the previous 20s was unrealistic
7878
# and produced flakes. 120s is a comfortable upper bound for nested virt.
7979
timeout 120 sh -ec "until kubectl -n tenant-test get vmi vm-instance-$name -o jsonpath='{.status.interfaces[0].ipAddress}' | grep -q '[0-9]'; do sleep 2; done"
80-
kubectl -n tenant-test wait hr vm-instance-$name --timeout=5s --for=condition=ready
80+
kubectl -n tenant-test wait hr vm-instance-$name --timeout=60s --for=condition=ready
8181
# VM ready follows IP assignment closely; 60s gives buffer for the qemu-guest-agent.
8282
kubectl -n tenant-test wait vm vm-instance-$name --timeout=60s --for=condition=ready
8383
kubectl -n tenant-test delete vminstances.apps.cozystack.io $name --timeout=3m

0 commit comments

Comments
 (0)