From 9a949f1ad74124aa5519c115bc2cf8cbdadc68e9 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 30 Jan 2024 16:38:31 +0000 Subject: [PATCH] agent/node-proxy: fix wrong host name used in data endpoint data['cephx']['name'] will return something like: node-proxy.hostname123 the prefix "node-proxy." has the be removed otherwise there will be a mismatch between what is actually expected. Signed-off-by: Guillaume Abrioux --- src/pybind/mgr/cephadm/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/agent.py b/src/pybind/mgr/cephadm/agent.py index 68495d3bc061f..5fbf309c544cb 100644 --- a/src/pybind/mgr/cephadm/agent.py +++ b/src/pybind/mgr/cephadm/agent.py @@ -264,7 +264,7 @@ class NodeProxyEndpoint: self.validate_node_proxy_data(data) if 'patch' not in data.keys(): raise cherrypy.HTTPError(400, 'Malformed data received.') - host = data['cephx']['name'] + host = data['cephx']['name'][11:] self.mgr.node_proxy_cache.save(host, data['patch']) self.raise_alert(data) -- 2.39.5