]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rbd-mirror: bring back compatibility with jewel deployment
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 25 Jul 2018 21:57:38 +0000 (23:57 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 26 Jul 2018 18:47:10 +0000 (18:47 +0000)
rbd-mirror can't start when deploying jewel because it needs admin
keyring.
Getting back this task brings backward compatibility for jewel
deployment.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-rbd-mirror/tasks/pre_requisite.yml

index b7f659d4047f1385c97f9dfe444f08cdfa77fcc7..ddefb2a5023e738cdbf6c772bad87ca2e5895b30 100644 (file)
@@ -8,6 +8,17 @@
   tags:
     - package-install
 
+- name: copy ceph admin key
+  copy:
+    src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"
+    dest: "/etc/ceph/{{ cluster }}.client.admin.keyring"
+    owner: "{{ ceph_uid }}"
+    group: "{{ ceph_uid }}"
+    mode: "0600"
+  when:
+    - cephx
+    - ceph_release_num[ceph_release] < ceph_release_num.luminous
+
 - name: create rbd-mirror keyring
   command: ceph --cluster {{ cluster }} --name client.bootstrap-rbd --keyring /var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring auth get-or-create client.rbd-mirror.{{ ansible_hostname }} mon 'profile rbd' osd 'profile rbd' -o /etc/ceph/{{ cluster }}.client.rbd-mirror.{{ ansible_hostname }}.keyring
   args: