From d46be38feb61d4d3dcf4b101db84e9a3eb410f17 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 --- 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 648b3b58d49..adcff4e67c3 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