From: Guillaume Abrioux Date: Wed, 11 Oct 2023 08:34:38 +0000 (+0000) Subject: cephadm/node-proxy: reset ceph warning when needed X-Git-Tag: v19.3.0~102^2~48 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d46be38feb61d4d3dcf4b101db84e9a3eb410f17;p=ceph.git 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 --- diff --git a/src/pybind/mgr/cephadm/agent.py b/src/pybind/mgr/cephadm/agent.py index 648b3b58d49b..adcff4e67c33 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)