Skip to content

Commit b525d2b

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

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
@@ -284,7 +284,7 @@ def update_cluster_cpu_model(admin_client, hco_namespace, hco_resource, cpu_mode
284284
hco_namespace=hco_namespace,
285285
path=["cpuModel"],
286286
value=cpu_model,
287-
timeout=60,
287+
timeout=120,
288288
)
289289
yield
290290

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
@@ -32,7 +32,6 @@
3232
CDI_LABEL,
3333
HOTPLUG_DISK_SERIAL,
3434
HPP_POOL,
35-
OS_FLAVOR_WINDOWS,
3635
POD_CONTAINER_SPEC,
3736
TIMEOUT_1MIN,
3837
TIMEOUT_1SEC,
@@ -44,7 +43,6 @@
4443
TIMEOUT_10MIN,
4544
TIMEOUT_10SEC,
4645
TIMEOUT_20SEC,
47-
TIMEOUT_30MIN,
4846
TIMEOUT_30SEC,
4947
TIMEOUT_60MIN,
5048
Images,
@@ -292,7 +290,7 @@ def data_volume(
292290
# It will be in a status 'PendingPopulation' (for csi storage)
293291
dv.wait_for_status(status="PendingPopulation", timeout=TIMEOUT_10SEC)
294292
else:
295-
dv.wait_for_dv_success(timeout=TIMEOUT_60MIN if OS_FLAVOR_WINDOWS in image else TIMEOUT_30MIN)
293+
dv.wait_for_dv_success(timeout=TIMEOUT_60MIN)
296294
yield dv
297295

298296

utilities/virt.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
TIMEOUT_12MIN,
8282
TIMEOUT_25MIN,
8383
TIMEOUT_30MIN,
84+
TIMEOUT_60MIN,
8485
VIRT_HANDLER,
8586
VIRT_LAUNCHER,
8687
VIRTCTL,
@@ -1693,7 +1694,7 @@ def assert_vm_not_error_status(vm: VirtualMachineForTests, timeout: int = TIMEOU
16931694

16941695
def wait_for_running_vm(
16951696
vm: VirtualMachineForTests,
1696-
wait_until_running_timeout: int = TIMEOUT_4MIN,
1697+
wait_until_running_timeout: int = TIMEOUT_8MIN,
16971698
wait_for_interfaces: bool = True,
16981699
check_ssh_connectivity: bool = True,
16991700
ssh_timeout: int = TIMEOUT_2MIN,
@@ -1731,7 +1732,7 @@ def running_vm(
17311732
check_ssh_connectivity=True,
17321733
ssh_timeout=TIMEOUT_2MIN,
17331734
wait_for_cloud_init=False,
1734-
dv_wait_timeout=TIMEOUT_30MIN,
1735+
dv_wait_timeout=TIMEOUT_60MIN,
17351736
):
17361737
"""
17371738
Wait for the VMI to be in Running state.
@@ -1812,7 +1813,7 @@ def wait_for_cloud_init_complete(vm, timeout=TIMEOUT_4MIN):
18121813
def migrate_vm_and_verify(
18131814
vm: VirtualMachineForTests | BaseVirtualMachine,
18141815
client: DynamicClient | None = None,
1815-
timeout: int = TIMEOUT_12MIN,
1816+
timeout: int = TIMEOUT_25MIN,
18161817
wait_for_interfaces: bool = True,
18171818
check_ssh_connectivity: bool = False,
18181819
wait_for_migration_success: bool = True,

0 commit comments

Comments
 (0)