Whamcloud - gitweb
LU-15461 test: add pool quota check
authorHongchao Zhang <hongchao@whamcloud.com>
Thu, 12 Oct 2023 10:32:29 +0000 (18:32 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 27 Oct 2023 21:42:50 +0000 (21:42 +0000)
The test_79 in sanity-quota needs quota pool support.
The removal of the "stop file" is also improved not to
trigger the test error if it has been deleted.

Lustre-change: https://review.whamcloud.com/52737
Lustre-commit: TBD (from a4b3cd91ae157a63644350769ebb248f21dd6eac)

Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: I4acd36e61faf4259c2821293ffb7913d4cca76bd
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52659
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-quota.sh

index b5dabc5..5a0fac8 100755 (executable)
@@ -5548,12 +5548,13 @@ test_79()
        local cmd="$LCTL get_param -n qmt.$FSNAME-QMT0000.dt-$qpool.info"
        local stopf=$TMP/$tfile
 
+       mds_supports_qp
        do_facet mds1 "touch $stopf"
        stack_trap "do_facet mds1 'rm -f $stopf'"
        do_facet mds1 "while [ -e $stopf ]; do $cmd &>/dev/null; done"&
        local pid=$!
        pool_add $qpool || error "pool_add failed"
-       do_facet mds1 "rm $stopf"
+       do_facet mds1 "rm -f $stopf"
        wait $pid
 }
 run_test 79 "access to non-existed dt-pool/info doesn't cause a panic"