]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm/node-proxy: reset ceph warning when needed
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 11 Oct 2023 08:34:38 +0000 (08:34 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 15:09:27 +0000 (15:09 +0000)
This makes the mgr reset the warning when the alert is fixed.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit e7d6b109a264d5964363eee0af2e0051e19bf2d6)

src/pybind/mgr/cephadm/agent.py

index 648b3b58d49b4b46281fb777256c3cbec634634a..adcff4e67c337395885f6b985c4b502a909f1342 100644 (file)
@@ -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)