]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mds: enable application pool
authorSébastien Han <seb@redhat.com>
Fri, 29 Jun 2018 09:48:01 +0000 (11:48 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 2 Jul 2018 10:28:34 +0000 (10:28 +0000)
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 <seb@redhat.com>
roles/ceph-mds/tasks/create_mds_filesystems.yml

index 0af68be0398d7ce02e2b072404250f5f9275edd3..79bc812818e082e0b35e2b70c1a73067f70cf2e3 100644 (file)
   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