Skip to content

Commit fe24483

Browse files
Merge pull request #30030 from bitoku/image-volume-fix2
OCPNODE-3004: Increase the time to wait until the pod becomes ImagePullBackOff
2 parents 8933dc6 + 22745b8 commit fe24483

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/extended/node/image_volume.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ var _ = g.Describe("[sig-node] [FeatureGate:ImageVolume] ImageVolume", func() {
5757
o.Expect(err).NotTo(o.HaveOccurred())
5858

5959
g.By("Waiting for pod to be ErrImagePull or ImagePullBackOff")
60-
err = e2epod.WaitForPodCondition(ctx, oc.AdminKubeClient(), pod.Namespace, pod.Name, "ImagePullBackOff", 60*time.Second, func(pod *v1.Pod) (bool, error) {
60+
// wait for 5 mins so that the pod in metal-ovn-two-node-arbiter-ipv6-techpreview can become ImagePullBackOff.
61+
err = e2epod.WaitForPodCondition(ctx, oc.AdminKubeClient(), pod.Namespace, pod.Name, "ImagePullBackOff", 5*time.Minute, func(pod *v1.Pod) (bool, error) {
6162
return len(pod.Status.ContainerStatuses) > 0 &&
6263
pod.Status.ContainerStatuses[0].State.Waiting != nil &&
6364
(pod.Status.ContainerStatuses[0].State.Waiting.Reason == "ImagePullBackOff" || pod.Status.ContainerStatuses[0].State.Waiting.Reason == "ErrImagePull"),

0 commit comments

Comments
 (0)