]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rbd: fix restart script for jewel 2073/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 17 Oct 2017 16:28:06 +0000 (18:28 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 18 Oct 2017 09:10:49 +0000 (11:10 +0200)
In Jewel, we don't use bootstrap-rbd keyring for rbd-mirror nodes, it
results with a socket path/name different according to which ceph
release you are deploying.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-config/tasks/main.yml
roles/ceph-defaults/templates/restart_rbd_mirror_daemon.sh.j2

index d256e1eba14b564fda10df6910a43878ad3ac122..97520b2ef817adcabd08b505c581f6c9ba538fc6 100644 (file)
@@ -51,7 +51,8 @@
       - restart ceph osds
       - restart ceph mdss
       - restart ceph rgws
-      - restart ceph nfss
+      - restart ceph mgrs
+      - restart ceph rbdmirrors
   when:
     - not containerized_deployment|bool
 
       - restart ceph osds
       - restart ceph mdss
       - restart ceph rgws
-      - restart ceph rbdmirrors
       - restart ceph mgrs
+      - restart ceph rbdmirrors
 
   - name: set fsid fact when generate_fsid = true
     set_fact:
index 5a7ee69403e1e87ece213100063eee8b532a41f0..d3ceb6ff5f2daf954c0c3cb4a9bd79b02d19a618 100644 (file)
@@ -3,7 +3,11 @@
 RETRIES="{{ handler_health_rbd_mirror_check_retries }}"
 DELAY="{{ handler_health_rbd_mirror_check_delay }}"
 RBD_MIRROR_NAME="{{ ansible_hostname }}"
+{% if ceph_release_num[ceph_release] < ceph_release_num['luminous'] %}
+SOCKET=/var/run/ceph/{{ cluster }}-client.admin.asok
+{% else %}
 SOCKET=/var/run/ceph/{{ cluster }}-client.rbd-mirror.${RBD_MIRROR_NAME}.asok
+{% endif %}
 {% if containerized_deployment %}
 DOCKER_EXEC="docker exec ceph-rbd-mirror-{{ ansible_hostname }}"
 {% endif %}