From: Sébastien Han Date: Fri, 13 Oct 2017 14:01:19 +0000 (+0200) Subject: mds: fix fs pool creation X-Git-Tag: beta-3.1.0~111^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71d819620c74fdbb68c906de76beee6e5be7c4e8;p=ceph-ansible.git mds: fix fs pool creation 1. add the variables to docker_collocation 2. trigger the check when a MDS is part of the inventory file, not when we run on an MDS... Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-mon/tasks/check_mandatory_vars.yml b/roles/ceph-mon/tasks/check_mandatory_vars.yml index 395838242..ce50ea984 100644 --- a/roles/ceph-mon/tasks/check_mandatory_vars.yml +++ b/roles/ceph-mon/tasks/check_mandatory_vars.yml @@ -12,5 +12,5 @@ msg: "You must set pg num for your cephfs pools, see the cephfs_pools variable." with_items: "{{ cephfs_pools }}" when: - - inventory_hostname in groups.get(mds_group_name, []) + - groups.get(mds_group_name, []) | length > 0 - item.pgs == '' diff --git a/tests/functional/centos/7/docker-collocation/group_vars/mons b/tests/functional/centos/7/docker-collocation/group_vars/mons new file mode 100644 index 000000000..acb09490a --- /dev/null +++ b/tests/functional/centos/7/docker-collocation/group_vars/mons @@ -0,0 +1,4 @@ +--- +cephfs_pools: + - { name: "{{ cephfs_data }}", pgs: "8" } + - { name: "{{ cephfs_metadata }}", pgs: "8" }