]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mds: fix fs pool creation 2051/head
authorSébastien Han <seb@redhat.com>
Fri, 13 Oct 2017 14:01:19 +0000 (16:01 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 13 Oct 2017 14:03:04 +0000 (16:03 +0200)
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 <seb@redhat.com>
roles/ceph-mon/tasks/check_mandatory_vars.yml
tests/functional/centos/7/docker-collocation/group_vars/mons [new file with mode: 0644]

index 395838242632018439c55cd4241735339582665d..ce50ea9847152d0aad872ac4e8383827b850a278 100644 (file)
@@ -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 (file)
index 0000000..acb0949
--- /dev/null
@@ -0,0 +1,4 @@
+---
+cephfs_pools:
+  - { name: "{{ cephfs_data }}", pgs: "8" }
+  - { name: "{{ cephfs_metadata }}", pgs: "8" }