Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ocp_resources/datavolume.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def wait_for_dv_success(
self,
timeout=TIMEOUT_10MINUTES,
failure_timeout=TIMEOUT_2MINUTES,
pvc_wait_for_bound_timeout=TIMEOUT_1MINUTE,
dv_garbage_collection_enabled=None,
stop_status_func=None,
*stop_status_func_args,
Expand All @@ -314,6 +315,7 @@ def wait_for_dv_success(
Args:
timeout (int): Time to wait for the DataVolume to succeed.
failure_timeout (int): Time to wait for the DataVolume to have not Pending/None status
pvc_wait_for_bound_timeout (int): Time to wait for the PVC to reach 'Bound' status.
dv_garbage_collection_enabled (bool, default: None): DV garbage collection is deprecated and removed in
v4.19
stop_status_func (function): function that is called inside the TimeoutSampler
Expand Down Expand Up @@ -361,7 +363,7 @@ def test_dv():
raise

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

def delete(self, wait=False, timeout=TIMEOUT_4MINUTES, body=None):
"""
Expand Down