Fixes: https://tracker.ceph.com/issues/74045
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
cli: Callable, wait_for_mgr_restart: Callable
) -> None:
- cli(['cephadm', 'set-user', ctx.ssh_user])
-
+ # SSH identity must be in the mgr before set-user
if ctx.ssh_config:
logger.info('Using provided ssh config...')
mounts = {
logger.info('Wrote public SSH key to %s' % ctx.output_pub_ssh_key)
authorize_ssh_key(ssh_pub, ctx.ssh_user)
+ cli(['cephadm', 'set-user', ctx.ssh_user])
+
host = get_hostname()
logger.info('Adding host %s...' % host)
try: