From 24e2e62857e061357483aa42e275aafcd9db4bee Mon Sep 17 00:00:00 2001 From: Paul Cuzner Date: Thu, 30 Jul 2020 09:02:04 +1200 Subject: [PATCH] mgr/cephadm: add qa tests for daemon restart Added tests to cove daemon stop/start and restart Signed-off-by: Paul Cuzner (cherry picked from commit 5ff0a1d2daa7d36c9c3284523269c4a1a7daa437) --- qa/tasks/cephadm_cases/test_cli.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qa/tasks/cephadm_cases/test_cli.py b/qa/tasks/cephadm_cases/test_cli.py index 3d39902a09b79..f6a7521b6f63e 100644 --- a/qa/tasks/cephadm_cases/test_cli.py +++ b/qa/tasks/cephadm_cases/test_cli.py @@ -43,3 +43,10 @@ class TestCephadmCLI(MgrTestCase): self.wait_for_health('CEPHADM_PAUSED', 30) self._orch_cmd('resume') self.wait_for_health_clear(30) + + def test_daemon_restart(self): + self._orch_cmd('daemon', 'stop', 'osd.0') + self.wait_for_health('OSD_DOWN', 30) + self._orch_cmd('daemon', 'start', 'osd.0') + self.wait_for_health_clear(30) + self._orch_cmd('daemon', 'restart', 'osd.0') -- 2.39.5