From 7e6d9511e5aa6410e81e4520be28b08204fc1079 Mon Sep 17 00:00:00 2001 From: Teoman ONAY Date: Thu, 17 Mar 2022 15:13:06 +0100 Subject: [PATCH] Using another user than root for cephadm ssh connections fails Fixes commit da42f3d139e595d09edfb30334fbc7ce17ffa3fe Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2048734 Signed-off-by: Teoman ONAY (cherry picked from commit f851d3232c6237c46044fb68fdb70ccc0d0deb3c) (cherry picked from commit 274a78023795f0c1cacab18606975aed73f6fc7f) --- infrastructure-playbooks/cephadm-adopt.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index 3136e5229..15396d08e 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -288,9 +288,9 @@ -v /var/lib/ceph:/var/lib/ceph:ro -v /var/run/ceph:/var/run/ceph:z -v ' + item.1 + ':/etc/ceph/cephadm.' + item.0 + ':ro --entrypoint=ceph '+ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else 'ceph' }} - --cluster {{ cluster }} config-key set mgr/cephadm/ssh_identity_{{ item.0 }} -i /etc/ceph/cephadm.{{ item.0 }} + --cluster {{ cluster }} cephadm set-{{ item.0 }}-key -i /etc/ceph/cephadm.{{ item.0 }} with_together: - - [ 'pub', 'key' ] + - [ 'pub', 'priv' ] - [ '{{ cephadm_ssh_pub_key_path }}', '{{ cephadm_ssh_priv_key_path }}' ] - name: get the cephadm ssh pub key