Merge pull request #2073 from ceph/fix_rbd_handler

[skip ci] rbd: fix restart script for jewel
pull/1998/merge
Sébastien Han 2017-10-18 11:12:05 +02:00 committed by GitHub
commit 1579f1c5b1
2 changed files with 7 additions and 2 deletions

View 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
@ -118,8 +119,8 @@
- 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:

View 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 %}