From: Xiubo Li Date: Tue, 20 Oct 2020 05:06:25 +0000 (-0400) Subject: qa/cephfs: add 'cephfs:' section support X-Git-Tag: v15.2.8~5^2~1^2~8^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85131e2c7af2bf58a8c9785152279a1c2825a4a1;p=ceph.git qa/cephfs: add 'cephfs:' section support Fixes: https://tracker.ceph.com/issues/47565 Signed-off-by: Xiubo Li (cherry picked from commit 3b5303482ff77667d48b85f4a3bc54e3ff6a60a6) --- diff --git a/qa/cephfs/clusters/3-mds.yaml b/qa/cephfs/clusters/3-mds.yaml index ab517757033e..edfec5e19a37 100644 --- a/qa/cephfs/clusters/3-mds.yaml +++ b/qa/cephfs/clusters/3-mds.yaml @@ -4,7 +4,8 @@ roles: - [client.0, client.1] overrides: ceph: - max_mds: 3 + cephfs: + max_mds: 3 openstack: - volumes: # attached to each instance count: 4 diff --git a/qa/cephfs/clusters/9-mds.yaml b/qa/cephfs/clusters/9-mds.yaml index 302b1ac786ef..fd69e32bcea7 100644 --- a/qa/cephfs/clusters/9-mds.yaml +++ b/qa/cephfs/clusters/9-mds.yaml @@ -4,7 +4,8 @@ roles: - [client.0, client.1] overrides: ceph: - max_mds: 9 + cephfs: + max_mds: 9 openstack: - volumes: # attached to each instance count: 4 diff --git a/qa/suites/fs/upgrade/featureful_client/old_client/overrides/multimds/no.yaml b/qa/suites/fs/upgrade/featureful_client/old_client/overrides/multimds/no.yaml index c740a450a6f2..f9e95daa9230 100644 --- a/qa/suites/fs/upgrade/featureful_client/old_client/overrides/multimds/no.yaml +++ b/qa/suites/fs/upgrade/featureful_client/old_client/overrides/multimds/no.yaml @@ -1,3 +1,4 @@ overrides: ceph: - max_mds: 1 + cephfs: + max_mds: 1 diff --git a/qa/suites/fs/upgrade/featureful_client/old_client/overrides/multimds/yes.yaml b/qa/suites/fs/upgrade/featureful_client/old_client/overrides/multimds/yes.yaml index ecf118d9f867..b3a9b5d6714f 100644 --- a/qa/suites/fs/upgrade/featureful_client/old_client/overrides/multimds/yes.yaml +++ b/qa/suites/fs/upgrade/featureful_client/old_client/overrides/multimds/yes.yaml @@ -1,3 +1,4 @@ overrides: ceph: - max_mds: 2 + cephfs: + max_mds: 2 diff --git a/qa/suites/fs/upgrade/featureful_client/upgraded_client/overrides/multimds/no.yaml b/qa/suites/fs/upgrade/featureful_client/upgraded_client/overrides/multimds/no.yaml index c740a450a6f2..f9e95daa9230 100644 --- a/qa/suites/fs/upgrade/featureful_client/upgraded_client/overrides/multimds/no.yaml +++ b/qa/suites/fs/upgrade/featureful_client/upgraded_client/overrides/multimds/no.yaml @@ -1,3 +1,4 @@ overrides: ceph: - max_mds: 1 + cephfs: + max_mds: 1 diff --git a/qa/suites/fs/upgrade/featureful_client/upgraded_client/overrides/multimds/yes.yaml b/qa/suites/fs/upgrade/featureful_client/upgraded_client/overrides/multimds/yes.yaml index ecf118d9f867..b3a9b5d6714f 100644 --- a/qa/suites/fs/upgrade/featureful_client/upgraded_client/overrides/multimds/yes.yaml +++ b/qa/suites/fs/upgrade/featureful_client/upgraded_client/overrides/multimds/yes.yaml @@ -1,3 +1,4 @@ overrides: ceph: - max_mds: 2 + cephfs: + max_mds: 2 diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 577f75cf0fac..e63576c932c6 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -405,7 +405,8 @@ def cephfs_setup(ctx, config): fs = Filesystem(ctx, name='cephfs', create=True, ec_profile=config.get('cephfs_ec_profile', None)) - max_mds = config.get('max_mds', 1) + cephfs_conf = config['cephfs'] + max_mds = config_conf.get('max_mds', 1) if max_mds > 1: fs.set_max_mds(max_mds) @@ -1684,6 +1685,13 @@ def task(ctx, config): mkfs_options: [-b,size=65536,-l,logdev=/dev/sdc1] mount_options: [nobarrier, inode64] + To change the cephfs's default max_mds (1), use:: + + tasks: + - ceph: + cephfs: + max_mds: 2 + Note, this will cause the task to check the /scratch_devs file on each node for available devices. If no such file is found, /dev/sdb will be used.