Skip to content

Commit 19144b8

Browse files
committed
Updated timeout for more tests failing with TimeoutExpired
Signed-off-by: chandramerla <Chandra.Merla@ibm.com>
1 parent 1fedc8e commit 19144b8

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def update_cluster_cpu_model(admin_client, hco_namespace, hco_resource, cpu_mode
286286
hco_namespace=hco_namespace,
287287
path=["cpuModel"],
288288
value=cpu_model,
289-
timeout=60,
289+
timeout=120,
290290
)
291291
yield
292292

tests/virt/node/node_labeller/cpu_features/test_node_feature_discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def updated_kubevirt_cpus(
5656
hco_namespace=hco_namespace,
5757
path=[OBSOLETE_CPU, cluster_common_node_cpu],
5858
value=True,
59-
timeout=60,
59+
timeout=120,
6060
)
6161
wait_for_kv_stabilize(admin_client=admin_client, hco_namespace=hco_namespace)
6262
yield

utilities/storage.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
CDI_LABEL,
3535
HOTPLUG_DISK_SERIAL,
3636
HPP_POOL,
37-
OS_FLAVOR_WINDOWS,
3837
POD_CONTAINER_SPEC,
3938
TIMEOUT_1SEC,
4039
TIMEOUT_2MIN,
@@ -45,7 +44,6 @@
4544
TIMEOUT_10MIN,
4645
TIMEOUT_10SEC,
4746
TIMEOUT_20SEC,
48-
TIMEOUT_30MIN,
4947
TIMEOUT_30SEC,
5048
TIMEOUT_60MIN,
5149
Images,
@@ -293,7 +291,7 @@ def data_volume(
293291
# It will be in a status 'PendingPopulation' (for csi storage)
294292
dv.wait_for_status(status="PendingPopulation", timeout=TIMEOUT_10SEC)
295293
else:
296-
dv.wait_for_dv_success(timeout=TIMEOUT_60MIN if OS_FLAVOR_WINDOWS in image else TIMEOUT_30MIN)
294+
dv.wait_for_dv_success(timeout=TIMEOUT_60MIN)
297295
yield dv
298296

299297

utilities/virt.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
TIMEOUT_12MIN,
8484
TIMEOUT_25MIN,
8585
TIMEOUT_30MIN,
86+
TIMEOUT_60MIN,
8687
VIRT_HANDLER,
8788
VIRT_LAUNCHER,
8889
VIRTCTL,
@@ -1695,7 +1696,7 @@ def assert_vm_not_error_status(vm: VirtualMachineForTests, timeout: int = TIMEOU
16951696

16961697
def wait_for_running_vm(
16971698
vm: VirtualMachineForTests,
1698-
wait_until_running_timeout: int = TIMEOUT_4MIN,
1699+
wait_until_running_timeout: int = TIMEOUT_8MIN,
16991700
wait_for_interfaces: bool = True,
17001701
check_ssh_connectivity: bool = True,
17011702
ssh_timeout: int = TIMEOUT_2MIN,
@@ -1733,7 +1734,7 @@ def running_vm(
17331734
check_ssh_connectivity=True,
17341735
ssh_timeout=TIMEOUT_2MIN,
17351736
wait_for_cloud_init=False,
1736-
dv_wait_timeout=TIMEOUT_30MIN,
1737+
dv_wait_timeout=TIMEOUT_60MIN,
17371738
):
17381739
"""
17391740
Wait for the VMI to be in Running state.
@@ -1814,7 +1815,7 @@ def wait_for_cloud_init_complete(vm, timeout=TIMEOUT_4MIN):
18141815
def migrate_vm_and_verify(
18151816
vm: VirtualMachineForTests | BaseVirtualMachine,
18161817
client: DynamicClient | None = None,
1817-
timeout: int = TIMEOUT_12MIN,
1818+
timeout: int = TIMEOUT_25MIN,
18181819
wait_for_interfaces: bool = True,
18191820
check_ssh_connectivity: bool = False,
18201821
wait_for_migration_success: bool = True,

0 commit comments

Comments
 (0)