Skip to content

Commit

Permalink
ceph-mds: fix the handler
Browse files Browse the repository at this point in the history
Moving the mds_name fact in the common role so the MDS can properly
be restarted.

Signed-off-by: Sébastien Han <[email protected]>
(cherry picked from commit b397135)
  • Loading branch information
leseb authored and andrewschoen committed May 10, 2016
1 parent 35048d5 commit 3f67741
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions group_vars/all.sample
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ dummy:
## MDS options
#
#mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
#mds_name: "{{ ansible_hostname }}"

## Rados Gateway options
#
Expand Down Expand Up @@ -380,3 +381,4 @@ dummy:
# by ceph.conf.j2 template. so it should always be defined
#mon_containerized_deployment_with_kv: false


1 change: 0 additions & 1 deletion group_vars/common-coreoss.sample
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ dummy:
#pypy_binary_directory: /opt/bin
#pip_url: https://bootstrap.pypa.io/get-pip.py
#local_temp_directory: /tmp

9 changes: 9 additions & 0 deletions roles/ceph-common/tasks/facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,12 @@

- set_fact:
is_kraken={{ ceph_version | version_compare('11.0.0', '>=') and ceph_version | version_compare('12.0.0', '<') }}

- set_fact:
mds_name: "{{ ansible_hostname }}"
when: not mds_use_fqdn

- set_fact:
mds_name: "{{ ansible_fqdn }}"
when: mds_use_fqdn

8 changes: 0 additions & 8 deletions roles/ceph-mds/tasks/pre_requisite.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
---
- set_fact:
mds_name: "{{ ansible_hostname }}"
when: not mds_use_fqdn

- set_fact:
mds_name: "{{ ansible_fqdn }}"
when: mds_use_fqdn

- name: create bootstrap-mds directory
file:
path: /var/lib/ceph/bootstrap-mds/
Expand Down

0 comments on commit 3f67741

Please sign in to comment.