From fdaa00977e3d9ee3bd1c6f5be69a0e93d6825136 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 30 Jul 2020 13:38:45 +0200 Subject: [PATCH] mgr/cephadm: Don't run `daemons_post` if _create_daemon fail We can't run daemon_check_post for the type, if a single daemon failed. Mainly cause `daemon_check_post` is run by service type. Signed-off-by: Sebastian Wagner --- src/pybind/mgr/cephadm/module.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 8ebe570cf8f..576932c17de 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -2128,9 +2128,13 @@ you may want to run: reconfig=True) except OrchestratorError as e: self.events.from_orch_error(e) + if dd.daemon_type in daemons_post: + del daemons_post[dd.daemon_type] # continue... except Exception as e: self.events.for_daemon_from_exception(dd.name(), e) + if dd.daemon_type in daemons_post: + del daemons_post[dd.daemon_type] # continue... # do daemon post actions -- 2.39.5