Skip to content

Commit 5aa740f

Browse files
Ahmad-Hafernetser
andauthored
increase time for pvund (#2479)
Co-authored-by: Ruth Netser <[email protected]>
1 parent bc35521 commit 5aa740f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocp_resources/datavolume.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def wait_for_dv_success(
303303
self,
304304
timeout=TIMEOUT_10MINUTES,
305305
failure_timeout=TIMEOUT_2MINUTES,
306+
pvc_wait_for_bound_timeout=TIMEOUT_1MINUTE,
306307
dv_garbage_collection_enabled=None,
307308
stop_status_func=None,
308309
*stop_status_func_args,
@@ -314,6 +315,7 @@ def wait_for_dv_success(
314315
Args:
315316
timeout (int): Time to wait for the DataVolume to succeed.
316317
failure_timeout (int): Time to wait for the DataVolume to have not Pending/None status
318+
pvc_wait_for_bound_timeout (int): Time to wait for the PVC to reach 'Bound' status.
317319
dv_garbage_collection_enabled (bool, default: None): DV garbage collection is deprecated and removed in
318320
v4.19
319321
stop_status_func (function): function that is called inside the TimeoutSampler
@@ -361,7 +363,7 @@ def test_dv():
361363
raise
362364

363365
# For CSI storage, PVC gets Bound after DV succeeded
364-
return self.pvc.wait_for_status(status=PersistentVolumeClaim.Status.BOUND, timeout=TIMEOUT_1MINUTE)
366+
return self.pvc.wait_for_status(status=PersistentVolumeClaim.Status.BOUND, timeout=pvc_wait_for_bound_timeout)
365367

366368
def delete(self, wait=False, timeout=TIMEOUT_4MINUTES, body=None):
367369
"""

0 commit comments

Comments
 (0)