From: Sébastien Han Date: Wed, 3 Oct 2018 11:39:35 +0000 (+0200) Subject: switch: copy initial mon keyring X-Git-Tag: v3.1.9~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0b03f6faa18b2593de8c6a229f46fda36be6994;p=ceph-ansible.git switch: copy initial mon keyring We need to copy this key into /etc/ceph so when ceph-docker-common runs it can fetch it to the ansible server. Previously the task wasn't not failing because `fail_on_missing` was False before 2.5, so now it's True hence the failure. Signed-off-by: Sébastien Han (cherry picked from commit bae0f41705e4ca25492a7ff0169490331b897874) --- diff --git a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml index aa0c6d60d..d11ef0693 100644 --- a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml +++ b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml @@ -109,6 +109,13 @@ failed_when: false when: ldb_files.rc == 0 + - name: copy mon initial keyring in /etc/ceph to satisfy fetch config task in ceph-docker-common + command: cp /var/lib/ceph/mon/{{ cluster }}-{{ ansible_hostname }}/keyring /etc/ceph/{{ cluster }}.mon.keyring + args: + creates: /etc/ceph/{{ cluster }}.mon.keyring + changed_when: false + failed_when: false + roles: - ceph-defaults - ceph-docker-common