File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 """
You can’t perform that action at this time.
0 commit comments