From: Andreas Dilger Date: Sat, 10 Jun 2023 13:24:25 +0000 (-0600) Subject: LU-16420 tests: move overstriping test to sanity-pfl X-Git-Tag: 2.15.57~142 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0a21aa0623b87c643d4b56b9bd45fdcc1e566d4b;p=fs%2Flustre-release.git LU-16420 tests: move overstriping test to sanity-pfl The overstriping test does not really need to be run for every test run, so sanity-pfl is good enough. Also try to see if moving this subtest out of sanity will stop the test_51d failures seen since the test was landed. Fixes: 97d29eb800 ("LU-13748 mdt: remove LASSERT in mdt_dump_lmm") Test-Parameters: trivial testlist=sanity-pfl Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Test-Parameters: testlist=sanity env=ONLY=0-51,HONOR_EXCEPT=true mdscount=2 mdtcount=4 ostcount=8 Signed-off-by: Andreas Dilger Change-Id: I71ebc76fdcceb2b22994c09c3574cda4602540e5 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51268 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Colin Faber Reviewed-by: Alex Deiter Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-pfl.sh b/lustre/tests/sanity-pfl.sh index 5ab45c4..9b2e1bd 100644 --- a/lustre/tests/sanity-pfl.sh +++ b/lustre/tests/sanity-pfl.sh @@ -2514,6 +2514,31 @@ test_26c() { } run_test 26c "Append to not-existend component, crossing the component border" +test_27() { + [[ $($LCTL get_param mdc.*.import) =~ connect_flags.*overstriping ]] || + skip "server does not support overstriping" + (( $MDS1_VERSION >= $(version_code 2.15.55.102) )) || + skip "need MDS >= 2.12.55.102 for mdt_dump_lmm fix" + + stack_trap "rm -f $DIR/$tfile" + # start_full_debug_logging + $LFS setstripe -S 64K -C -1 $DIR/$tfile || error "create $tfile failed" + $LFS getstripe -c $DIR/$tfile || error "getstripe $tfile failed" + cancel_lru_locks + $LFS getstripe -c $DIR/$tfile || error "getstripe failed after clear" + + test_mkdir $DIR/$tdir + stack_trap "rm -rf $DIR/$tdir/$tfile" + $LFS setstripe -S 64K -C -1 $DIR/$tdir || error "mkdir $tdir failed" + $LFS getstripe -y $DIR/$tdir || error "getstripe $tdir failed" + touch $DIR/$tdir/$tfile || error "create $tdir/$tfile failed" + cancel_lru_locks + $LFS getstripe -c $DIR/$tdir/$tfile || + error "getstripe $tdir/$tfile failed" + #stop_full_debug_logging +} +run_test 27 "overstriping with -C -1 in mdt_dump_lmm" + complete $SECONDS check_and_cleanup_lustre exit_status diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index c7b6c54..4235273 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -2602,31 +2602,6 @@ test_27Cg() { } run_test 27Cg "test setstripe with wrong OST idx" -test_27Ch() { - [[ $($LCTL get_param mdc.*.import) =~ connect_flags.*overstriping ]] || - skip "server does not support overstriping" - (( $MDS1_VERSION >= $(version_code 2.15.55.102) )) || - skip "need MDS >= 2.12.55.102 for mdt_dump_lmm fix" - - stack_trap "rm -f $DIR/$tfile" - # start_full_debug_logging - $LFS setstripe -S 64K -C -1 $DIR/$tfile || error "create $tfile failed" - $LFS getstripe -c $DIR/$tfile || error "getstripe $tfile failed" - cancel_lru_locks - $LFS getstripe -c $DIR/$tfile || error "getstripe failed after clear" - - test_mkdir $DIR/$tdir - stack_trap "rm -rf $DIR/$tdir/$tfile" - $LFS setstripe -S 64K -C -1 $DIR/$tdir || error "mkdir $tdir failed" - $LFS getstripe -y $DIR/$tdir || error "getstripe $tdir failed" - touch $DIR/$tdir/$tfile || error "create $tdir/$tfile failed" - cancel_lru_locks - $LFS getstripe -c $DIR/$tdir/$tfile || - error "getstripe $tdir/$tfile failed" - #stop_full_debug_logging -} -run_test 27Ch "overstriping with -C -1 in mdt_dump_lmm" - test_27D() { [ $OSTCOUNT -lt 2 ] && skip_env "needs >= 2 OSTs" [ -n "$FILESET" ] && skip "SKIP due to FILESET set"