From d6f265f51d0752cd32daf2cb4c42d3338f72d9f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Fri, 29 Jun 2018 11:48:01 +0200 Subject: [PATCH] ceph-mds: enable application pool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We now enable the application type 'cephfs' for each cephfs pools we create. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1590275 Signed-off-by: Sébastien Han (cherry picked from commit a6294089679729b12022052381d1aa6cf9978df7) --- roles/ceph-mds/tasks/create_mds_filesystems.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/ceph-mds/tasks/create_mds_filesystems.yml b/roles/ceph-mds/tasks/create_mds_filesystems.yml index 0af68be03..79bc81281 100644 --- a/roles/ceph-mds/tasks/create_mds_filesystems.yml +++ b/roles/ceph-mds/tasks/create_mds_filesystems.yml @@ -20,6 +20,17 @@ when: - check_existing_cephfs.rc != 0 +- name: assign application to cephfs pools + command: "{{ hostvars[groups[mon_group_name][0]]['docker_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} osd pool application enable {{ item }} {{ cephfs }}" + with_items: + - "{{ cephfs_data }}" + - "{{ cephfs_metadata }}" + changed_when: false + delegate_to: "{{ groups[mon_group_name][0] }}" + when: + - check_existing_cephfs.rc != 0 + - ceph_release_num[ceph_release] >= ceph_release_num['luminous'] + - name: allow multimds command: "{{ hostvars[groups[mon_group_name][0]]['docker_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} fs set {{ cephfs }} allow_multimds true --yes-i-really-mean-it" changed_when: false