Whamcloud - gitweb
LU-14721 tests: wait_destroy_complete should check MDTs
authorOleg Drokin <green@whamcloud.com>
Sat, 29 May 2021 03:45:20 +0000 (23:45 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jul 2021 08:43:26 +0000 (08:43 +0000)
Ever since destroys handling was moved to MDTs we need to
move waiting for destroys completion to MDTs as well.

Lustre-change: https://review.whamcloud.com/43870
Lustre-commit: 3f8e14163a57ddf51047efc1c0a1b9c15631e2b4

Change-Id: I31440ec048b960206a903387d7050aa13e45008d
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44284
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/test-framework.sh

index a27ceb0..c222f3f 100755 (executable)
@@ -3450,14 +3450,15 @@ wait_osts_up() {
 }
 
 wait_destroy_complete () {
-       echo "Waiting for local destroys to complete"
+       echo "Waiting for MDT destroys to complete"
        # MAX value shouldn't be big as this mean server responsiveness
        # never increase this just to make test pass but investigate
        # why it takes so long time
        local MAX=5
        local WAIT=0
+       local list=$(comma_list $(mdts_nodes))
        while [ $WAIT -lt $MAX ]; do
-               local -a RPCs=($($LCTL get_param -n osc.*.destroys_in_flight))
+               local -a RPCs=($(do_nodes $list $LCTL get_param -n osp.*.destroys_in_flight))
                local con=1
                local i
 
@@ -3472,7 +3473,7 @@ wait_destroy_complete () {
                echo "Waiting ${WAIT}s for local destroys to complete"
                WAIT=$((WAIT + 1))
        done
-       echo "Local destroys weren't done in $MAX sec."
+       echo "MDT destroys weren't done in $MAX sec."
        return 1
 }