From 3f59fa99ac3f033b11a73485be5cb9367819df80 Mon Sep 17 00:00:00 2001 From: Ahmad Hafe Date: Thu, 31 Jul 2025 16:23:26 +0300 Subject: [PATCH] increase time for pvund --- ocp_resources/datavolume.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ocp_resources/datavolume.py b/ocp_resources/datavolume.py index f5edea66a5..488e510d90 100644 --- a/ocp_resources/datavolume.py +++ b/ocp_resources/datavolume.py @@ -270,7 +270,8 @@ def wait_for_dv_success( self, timeout=TIMEOUT_10MINUTES, failure_timeout=TIMEOUT_2MINUTES, - dv_garbage_collection_enabled=False, + pvc_wait_for_bound_timeout=TIMEOUT_1MINUTE, + dv_garbage_collection_enabled=None, stop_status_func=None, *stop_status_func_args, **stop_status_func_kwargs, @@ -281,7 +282,9 @@ 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 - dv_garbage_collection_enabled (bool, default: False): if True, expect that DV will disappear after success + 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 if it returns True - stop the Sampler and raise TimeoutExpiredError Example: @@ -325,7 +328,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): """