From 1a4a128d67774c59c073d2b98d53844c055a67e4 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 12 Feb 2024 16:20:42 +0000 Subject: [PATCH] mgr/cephadm: conditionally deploy node-proxy Only attempt to deploy the node-proxy agent when oob details are provided for a given host. Signed-off-by: Guillaume Abrioux --- src/pybind/mgr/cephadm/serve.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index abb9310fa04..27775087d05 100644 --- a/src/pybind/mgr/cephadm/serve.py +++ b/src/pybind/mgr/cephadm/serve.py @@ -888,6 +888,13 @@ class CephadmServe: hosts_altered.add(d.hostname) break + # do not attempt to deploy node-proxy agent when oob details are not provided. + if slot.daemon_type == 'node-proxy' and slot.hostname not in self.mgr.node_proxy_cache.oob.keys(): + self.log.debug( + f'Not deploying node-proxy agent on {slot.hostname} as oob details are not present.' + ) + continue + # deploy new daemon daemon_id = slot.name