Skip to content

Commit 1a4a128

Browse files
committed
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 <[email protected]>
1 parent 42e3d21 commit 1a4a128

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pybind/mgr/cephadm/serve.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,13 @@ def update_progress() -> None:
888888
hosts_altered.add(d.hostname)
889889
break
890890

891+
# do not attempt to deploy node-proxy agent when oob details are not provided.
892+
if slot.daemon_type == 'node-proxy' and slot.hostname not in self.mgr.node_proxy_cache.oob.keys():
893+
self.log.debug(
894+
f'Not deploying node-proxy agent on {slot.hostname} as oob details are not present.'
895+
)
896+
continue
897+
891898
# deploy new daemon
892899
daemon_id = slot.name
893900

0 commit comments

Comments
 (0)