]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix failure when using --apply-spec and --shh-user 40737/head
authorDaniel Pivonka <dpivonka@redhat.com>
Mon, 29 Mar 2021 17:47:11 +0000 (13:47 -0400)
committerDaniel Pivonka <dpivonka@redhat.com>
Fri, 9 Apr 2021 20:56:57 +0000 (16:56 -0400)
commit8ec8e6e6b03e45a351fc819202425bcbd0e36297
treed5c20252d6bb8f775450e5b78cfca35480f1bba9
parent1976598f645ad1935a5e428219713b8856796d83
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>
(cherry picked from commit 33c843f8a275d6f01d824c6fa066fbd771b6e9fc)
src/cephadm/cephadm