]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm_cases: increase timeouts in test_cli.py
authorAdam King <adking@redhat.com>
Thu, 10 Feb 2022 01:42:42 +0000 (20:42 -0500)
committerAdam King <adking@redhat.com>
Tue, 5 Apr 2022 20:10:21 +0000 (16:10 -0400)
These seem to be failing sometimes but in my testing
sometimes these events are happening a few seconds after
we hit the timeout. Trying to see if this makes the tests
more consistent. No need to mark the test as failed
if we report something up in 34 seconds vs 25 especially
when cephadm works on a cyclic daemon refresh.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 46f939f057bd05a885eaf750663310375f9dd929)

Conflicts:
qa/tasks/cephadm_cases/test_cli.py

qa/tasks/cephadm_cases/test_cli.py

index 1dcf2f35e69cfbfc420e3fd5a05de82bac2bb76a..c4cab49017bc0e42004354a74aafb61c1c6d27c9 100644 (file)
@@ -41,15 +41,15 @@ class TestCephadmCLI(MgrTestCase):
 
     def test_pause(self):
         self._orch_cmd('pause')
-        self.wait_for_health('CEPHADM_PAUSED', 30)
+        self.wait_for_health('CEPHADM_PAUSED', 60)
         self._orch_cmd('resume')
-        self.wait_for_health_clear(30)
+        self.wait_for_health_clear(60)
 
     def test_daemon_restart(self):
         self._orch_cmd('daemon', 'stop', 'osd.0')
-        self.wait_for_health('OSD_DOWN', 30)
+        self.wait_for_health('OSD_DOWN', 60)
         self._orch_cmd('daemon', 'start', 'osd.0')
-        self.wait_for_health_clear(90)
+        self.wait_for_health_clear(120)
         self._orch_cmd('daemon', 'restart', 'osd.0')
 
     def test_device_ls_wide(self):
@@ -57,7 +57,7 @@ class TestCephadmCLI(MgrTestCase):
 
     def test_cephfs_mirror(self):
         self._orch_cmd('apply', 'cephfs-mirror')
-        self.wait_until_true(lambda: 'cephfs-mirror' in self._orch_cmd('ps'), 30)
-        self.wait_for_health_clear(30)
+        self.wait_until_true(lambda: 'cephfs-mirror' in self._orch_cmd('ps'), 60)
+        self.wait_for_health_clear(60)
         self._orch_cmd('rm', 'cephfs-mirror')
-        self.wait_until_true(lambda: 'cephfs-mirror' not in self._orch_cmd('ps'), 30)
+        self.wait_until_true(lambda: 'cephfs-mirror' not in self._orch_cmd('ps'), 60)