]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix failure when using --apply-spec and --shh-user 40477/head
authorDaniel Pivonka <dpivonka@redhat.com>
Mon, 29 Mar 2021 17:47:11 +0000 (13:47 -0400)
committerDaniel Pivonka <dpivonka@redhat.com>
Mon, 29 Mar 2021 17:47:11 +0000 (13:47 -0400)
commit33c843f8a275d6f01d824c6fa066fbd771b6e9fc
tree92baca88faa5048a1291dfe8d230dc5f9ddb365f
parentc707d451fbb5528c2384c9fbc4356b7b112366e2
cephadm: fix failure when using --apply-spec and --shh-user

ssh-copy-id was being run as the root user because cephadm requires sudo
so it was trying to use the root users ssh keys to copy the cephadm ssh key to the hosts in the spec
this would fail if the root user did not has passwordless ssh to the host being added
solution run ssh-copy-id as the user ssh-user

additionally fix the check to not copy the cephadm ssh key to the bootstrap host

Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
src/cephadm/cephadm