Whamcloud - gitweb
LU-14331 tests: add version check for sanity-pfl 0b
authorJames Nunez <jnunez@whamcloud.com>
Tue, 19 Oct 2021 19:40:07 +0000 (13:40 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 20 Oct 2021 17:18:40 +0000 (17:18 +0000)
sanity-pfl test 0b was modified to not shrink the number
of stripes due to size constraints (LOV_MAX_STRIPE_COUNT).
The modified test 0b landed to Lustre 2.13.57.36 and we
should skip this test if the server version is less than
2.13.57.36.

Fixes: a58cdc9196f ("LU-14191 lod: comp stripe count limit check")

Test-Parameters: trivial serverversion=2.12.6-ddn42 serverdistro=el7.9 testlist=sanity-pfl env=ONLY=0b

Change-Id: I60de0e227ed566835476579dbca0d745f89245bf
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45301
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-pfl.sh

index 01ae167..5bb04c8 100644 (file)
@@ -71,6 +71,8 @@ test_0b() {
                grep "connect_flags:.*overstriping") ]] ||
                skip "server does not support overstriping"
        large_xattr_enabled || skip_env "no large xattr support"
+       (( $MDS1_VERSION >= $(version_code 2.13.57.36) )) ||
+               skip_env "Need MDS version at least 2.13.57.36"
 
        local comp_file=$DIR/$tdir/$tfile