From: Adam King Date: Mon, 13 Jan 2025 20:26:43 +0000 (-0500) Subject: qa/cephadm: wait between starting and restarting osd in test_daemon_restart test X-Git-Tag: v20.0.0~117^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=14ac318c30094019b83a6572aadbec4059cfd940;p=ceph.git qa/cephadm: wait between starting and restarting osd in test_daemon_restart test The test before the pause test ends with `ceph orch daemon restart osd.0` which may temporarily cause a CEPHADM_FAILED_DAEMON warning for that OSD. It seems to be failing with "status=219/CGROUP", logging nothing else of note, and coming up totally fine when restarted by systemd a second later (see the linked tracker for more info/logs). This sleep is me thinking this may be timing related and that if we separate the start from the restart by a few more seconds it might avoid the error. Fixes: https://tracker.ceph.com/issues/69526 Signed-off-by: Adam King --- diff --git a/qa/tasks/cephadm_cases/test_cli.py b/qa/tasks/cephadm_cases/test_cli.py index ca40a8cdb0f88..faa6fe7c33eaf 100644 --- a/qa/tasks/cephadm_cases/test_cli.py +++ b/qa/tasks/cephadm_cases/test_cli.py @@ -60,6 +60,8 @@ class TestCephadmCLI(MgrTestCase): time.sleep(5) self._orch_cmd('daemon', 'start', 'osd.0') self.wait_for_health_clear(120) + # this sleep is to try and address https://tracker.ceph.com/issues/69526 + time.sleep(5) self._orch_cmd('daemon', 'restart', 'osd.0') def test_device_ls_wide(self):