From: Guillaume Abrioux Date: Wed, 27 Sep 2023 09:41:49 +0000 (+0000) Subject: node-proxy: update alert names X-Git-Tag: v18.2.4~314^2~58 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a7be1ebd11eea3cfd6a55acf5aa8b8be20e3c7ca;p=ceph.git node-proxy: update alert names Given that the 'node-proxy' terminology is internal, let's change the few node-proxy related alert names to something more user friendly as they are intended to be seen by the user (NODE_PROXY_xxx > HARDWARE_xxx). Signed-off-by: Guillaume Abrioux (cherry picked from commit 14bfc07a1a3ad483f2f91c5d1fde9f073c12867e) --- diff --git a/src/pybind/mgr/cephadm/agent.py b/src/pybind/mgr/cephadm/agent.py index 697f097e14348..2c99149998c26 100644 --- a/src/pybind/mgr/cephadm/agent.py +++ b/src/pybind/mgr/cephadm/agent.py @@ -166,12 +166,12 @@ class NodeProxy: def raise_alert(self, data: Dict[str, Any]) -> None: mapping: Dict[str, str] = { - 'storage': 'NODE_PROXY_STORAGE', - 'memory': 'NODE_PROXY_MEMORY', - 'processors': 'NODE_PROXY_PROCESSORS', - 'network': 'NODE_PROXY_NETWORK', - 'power': 'NODE_PROXY_POWER', - 'fans': 'NODE_PROXY_FANS' + 'storage': 'HARDWARE_STORAGE', + 'memory': 'HARDWARE_MEMORY', + 'processors': 'HARDWARE_PROCESSORS', + 'network': 'HARDWARE_NETWORK', + 'power': 'HARDWARE_POWER', + 'fans': 'HARDWARE_FANS' } for component in data['data'].keys():