From 7095d838bf24c04ff4dde16a97b1e711d046eead Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 11 Oct 2023 08:34:38 +0000 Subject: [PATCH] cephadm/node-proxy: reset ceph warning when needed This makes the mgr reset the warning when the alert is fixed. Signed-off-by: Guillaume Abrioux (cherry picked from commit e7d6b109a264d5964363eee0af2e0051e19bf2d6) --- src/pybind/mgr/cephadm/agent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/agent.py b/src/pybind/mgr/cephadm/agent.py index 648b3b58d49b4..adcff4e67c337 100644 --- a/src/pybind/mgr/cephadm/agent.py +++ b/src/pybind/mgr/cephadm/agent.py @@ -177,8 +177,9 @@ class NodeProxy: } for component in data['data'].keys(): + self.mgr.remove_health_warning(mapping[component]) nok_members = self.get_nok_members(component, - data['data']) + data['data']) if nok_members: count = len(nok_members) -- 2.39.5