From 30c009cde35d8cb3b2e755cd9ea71e172c8a4290 Mon Sep 17 00:00:00 2001 From: Valerii Ponomarov Date: Wed, 29 May 2019 00:00:47 +0530 Subject: Fix 'test_pv_resize_by_exact_free_space' tc It was broken it 2 places: - It is first tc in the 'resize' test suite, which runs right after OCP API restart. And it happens to fail to talk to the OCP API. So, fix it by adding API service waiter in place where we restart it. - In this tc we delete huge volume which consumes almost whole disk space. And happens that this operation takes up to the 6 minutes. But we were waiting only for 5 minutes. So, just increase timeout. Change-Id: Ic6ada67b96ac8a37d13f57c0576e862226517b0d --- openshift-storage-libs/openshiftstoragelibs/openshift_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openshift-storage-libs/openshiftstoragelibs/openshift_ops.py') diff --git a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py index b6d086a6..44834dc4 100644 --- a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py +++ b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py @@ -631,7 +631,7 @@ def create_namespace(hostname, namespace): def wait_for_resource_absence(ocp_node, rtype, name, - interval=5, timeout=300): + interval=5, timeout=600): _waiter = waiter.Waiter(timeout=timeout, interval=interval) resource, pv_name = None, None for w in _waiter: -- cgit