]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mon: remove check on pg_num for cephfs_pools v3.1.0rc5
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 30 May 2018 15:04:53 +0000 (17:04 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 30 May 2018 19:45:03 +0000 (21:45 +0200)
It should have been backported from 29a9dff but for better clarity I
think it's better to create a new commit for this.

c68126d6 aims to not make `pgs` attribute mandatory for each element of
`cephfs_pools`. Therefore, we must remove the check in
`roles/ceph-mon/tasks/check_mandatory_vars.yml`.
This task has been removed by 29a9dff but I've chosen to not backport
this commit since it's part of a bunch of commits belonging to a PR
implementing `ceph-validate` role.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-mon/tasks/check_mandatory_vars.yml

index 2e045b88a067eded31de54c3469ff0bbe6fc6193..e2d45a09a37517a350c61cd3c1407000fe63f667 100644 (file)
@@ -5,12 +5,4 @@
   when:
     - monitor_interface == 'interface'
     - monitor_address == '0.0.0.0'
-    - monitor_address_block == 'subnet'
-
-- name: make sure pg num is set for cephfs pools
-  fail:
-    msg: "You must set pg num for your cephfs pools, see the cephfs_pools variable."
-  with_items: "{{ cephfs_pools }}"
-  when:
-    - groups.get(mds_group_name, []) | length > 0
-    - item.pgs == ''
+    - monitor_address_block == 'subnet'
\ No newline at end of file