Whamcloud - gitweb
LU-16194 tests: set minversion of MDS for sanity/65q 71/53771/4
authorLei Feng <flei@whamcloud.com>
Tue, 23 Jan 2024 04:01:21 +0000 (12:01 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 23 Mar 2024 05:54:02 +0000 (05:54 +0000)
There are 2 sanity/65p, rename one to 65q.
Checking for negative start/end is not expected for old
verson of MDS. So check the verson of MDS in 65q.

Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial testlist=sanity env=ONLY=65 serverversion=2.15
Change-Id: I1cb7716c37a349f441ed248613f569dd5ab78330
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53771
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index 291e38f..fa6e4a7 100755 (executable)
@@ -10497,10 +10497,11 @@ test_65p () { # LU-16152
 }
 run_test 65p "setstripe with yaml file and huge number"
 
-test_65p () { # LU-16194
+test_65q () { # LU-16194
        local src_dir=$DIR/$tdir/src_dir
 
-       (( $CLIENT_VERSION >= $(version_code 2.15.51) )) ||
+       (( $CLIENT_VERSION >= $(version_code 2.15.51) )) &&
+       (( $MDS1_VERSION >= $(version_code 2.15.51) )) ||
                skip "Need at least version 2.15.51"
 
        test_mkdir -p $src_dir
@@ -10512,7 +10513,7 @@ test_65p () { # LU-16194
        $LFS setstripe -E 8M -c 4 -E EOF -c 8 $src_dir ||
                error "failed to setstripe normally"
 }
-run_test 65p "setstripe with >=8E offset should fail"
+run_test 65q "setstripe with >=8E offset should fail"
 
 # bug 2543 - update blocks count on client
 test_66() {