Skip to content

Commit

Permalink
Merge pull request #44965 from adk3798/test_cli_timeout
Browse files Browse the repository at this point in the history
qa/tasks/cephadm_cases: increase timeouts in test_cli.py

Reviewed-by: Michael Fritch mfritch@suse.com
  • Loading branch information
adk3798 committed Feb 14, 2022
2 parents 2de993b + 46f939f commit 884dc76
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions qa/tasks/cephadm_cases/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,30 @@ def test_yaml(self):

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)
with safe_while(sleep=1, tries=30) as proceed:
self.wait_for_health('OSD_DOWN', 60)
with safe_while(sleep=2, tries=30) as proceed:
while proceed():
j = json.loads(self._orch_cmd('ps', '--format', 'json'))
d = {d['daemon_name']: d for d in j}
if d['osd.0']['status_desc'] != 'running':
break
time.sleep(5)
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):
self._orch_cmd('device', 'ls', '--wide')

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)

0 comments on commit 884dc76

Please sign in to comment.