From 46148171000eae92aecfa952be95e2209d407b78 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 10 Sep 2020 07:57:29 -0400 Subject: [PATCH] Increase time it takes for second pod to startup for offline resizing --- test/e2e/storage/testsuites/volume_expand.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/e2e/storage/testsuites/volume_expand.go b/test/e2e/storage/testsuites/volume_expand.go index 42e5253aa75..c77540ea4aa 100644 --- a/test/e2e/storage/testsuites/volume_expand.go +++ b/test/e2e/storage/testsuites/volume_expand.go @@ -42,6 +42,12 @@ const ( resizePollInterval = 2 * time.Second // total time to wait for cloudprovider or file system resize to finish totalResizeWaitPeriod = 10 * time.Minute + + // resizedPodStartupTimeout defines time we should wait for pod that uses offline + // resized volume to startup. This time is higher than default PodStartTimeout because + // typically time to detach and then attach a volume is amortized in this time duration. + resizedPodStartupTimeout = 10 * time.Minute + // time to wait for PVC conditions to sync pvcConditionSyncPeriod = 2 * time.Minute ) @@ -214,7 +220,7 @@ func (v *volumeExpandTestSuite) DefineTests(driver TestDriver, pattern testpatte SeLinuxLabel: e2epv.SELinuxLabel, NodeSelection: l.config.ClientNodeSelection, } - l.pod2, err = e2epod.CreateSecPodWithNodeSelection(f.ClientSet, &podConfig, framework.PodStartTimeout) + l.pod2, err = e2epod.CreateSecPodWithNodeSelection(f.ClientSet, &podConfig, resizedPodStartupTimeout) defer func() { err = e2epod.DeletePodWithWait(f.ClientSet, l.pod2) framework.ExpectNoError(err, "while cleaning up pod before exiting resizing test")