mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
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 <gabrioux@ibm.com>
This commit is contained in:
parent
42e3d217ff
commit
1a4a128d67
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user