From bae0f41705e4ca25492a7ff0169490331b897874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 3 Oct 2018 13:39:35 +0200 Subject: [PATCH] switch: copy initial mon keyring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ...rom-non-containerized-to-containerized-ceph-daemons.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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 f3c8da477..8bab92390 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-handler