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: v18.2.4~314^2~49 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7095d838bf24c04ff4dde16a97b1e711d046eead;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 (cherry picked from commit e7d6b109a264d5964363eee0af2e0051e19bf2d6) --- 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)