]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rbd-mirror: force sercice enable ceph-rbd-mirror.target
authorSébastien Han <seb@redhat.com>
Tue, 26 Sep 2017 12:12:11 +0000 (14:12 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 29 Sep 2017 00:38:24 +0000 (02:38 +0200)
There is a bug in the rbd mirror unit file, the upstream fix is here:
https://github.com/ceph/ceph/pull/17969.
This should be reverted once the patch is merged and backport is done.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-rbd-mirror/tasks/start_rbd_mirror.yml

index 62a80437264ab797e6a9073a8a6e1cc6056d0be9..3b5da3e343f4183f1a459eb9038609f9bc9476cf 100644 (file)
   when:
     - ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
 
+# This task is a workaround for rbd-mirror not starting after reboot
+# The upstream fix is: https://github.com/ceph/ceph/pull/17969
+# It's affecting, ceph version 12.2.0 (32ce2a3ae5239ee33d6150705cdb24d43bab910c) luminous (rc) and before
+- name: enable ceph-rbd-mirror.target
+  service:
+    name: "ceph-rbd-mirror.target"
+    enabled: yes
+  changed_when: false
+  when:
+    - ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
+
 - name: start and add the rbd-mirror service instance
   service:
     name: "ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}"