From 59ca1065e928455bc69cb90c443d3e18ffc0cf66 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 13 Oct 2017 08:27:43 +0200 Subject: [PATCH] rbd-mirror: enable ceph-rbd-mirror.target on jewel `ceph-rbd-mirror.target` isn't enabled, therefore, if the node is rebooted, the service doesn't get started. from ceph-rbd-mirror unit file: ``` [Install] WantedBy=ceph-rbd-mirror.target ``` Signed-off-by: Guillaume Abrioux --- roles/ceph-rbd-mirror/tasks/start_rbd_mirror.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/ceph-rbd-mirror/tasks/start_rbd_mirror.yml b/roles/ceph-rbd-mirror/tasks/start_rbd_mirror.yml index 0f35bbaee..0e0466c47 100644 --- a/roles/ceph-rbd-mirror/tasks/start_rbd_mirror.yml +++ b/roles/ceph-rbd-mirror/tasks/start_rbd_mirror.yml @@ -26,6 +26,15 @@ when: - ceph_release_num[ceph_release] < ceph_release_num.luminous +- name: enable ceph-rbd-mirror.target on jewel + systemd: + name: "ceph-rbd-mirror.target" + state: started + enabled: yes + changed_when: false + when: + - ceph_release_num[ceph_release] < ceph_release_num.luminous + - name: stop and remove the generic rbd-mirror service instance service: name: "ceph-rbd-mirror@{{ ceph_rbd_mirror_local_user }}"