def test_daemon_restart(self):
self._orch_cmd('daemon', 'stop', 'osd.0')
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}
while proceed():
j = json.loads(self._orch_cmd('ps', '--format', 'json'))
d = {d['daemon_name']: d for d in j}
self._orch_cmd('daemon', 'restart', 'osd.0')
def test_device_ls_wide(self):
self._orch_cmd('daemon', 'restart', 'osd.0')
def test_device_ls_wide(self):
def test_cephfs_mirror(self):
self._orch_cmd('apply', 'cephfs-mirror')
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)