]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: conditionally deploy node-proxy
authorGuillaume Abrioux <gabrioux@ibm.com>
Mon, 12 Feb 2024 16:20:42 +0000 (16:20 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 14 Feb 2024 09:05:53 +0000 (09:05 +0000)
Only attempt to deploy the node-proxy agent when oob details
are provided for a given host.

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

src/pybind/mgr/cephadm/serve.py

index e92407ec80a37726381395a5d9263df1926fd115..21713960daeb25a18b81b3781cd558c034133df6 100644 (file)
@@ -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