]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix failure when using --apply-spec and --shh-user
authorDaniel Pivonka <dpivonka@redhat.com>
Mon, 29 Mar 2021 17:47:11 +0000 (13:47 -0400)
committerSage Weil <sage@newdream.net>
Thu, 1 Apr 2021 14:08:43 +0000 (09:08 -0500)
commit6c80630c7f1f7a3055cbe0706f2ef67050ac2a49
tree59f432db5e3c4dcac207cdecddf23f986219dd82
parentb38801cfd1c713e5cd8f5ae1007cfd97e48dab45
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