Whamcloud - gitweb
LU-10680 tests: fix interop for sanity test_160h 73/53773/5
authorXing Huang <hxing@ddn.com>
Thu, 27 Oct 2022 11:41:11 +0000 (19:41 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 4 May 2024 03:00:46 +0000 (03:00 +0000)
Add a check sanity test_160h whether /sbin/umount.lustre is installed
on the MDS, since this subtest is checking whether the MDS unmount
process has completed, and otherwise fails during interop testing.

Test-Parameters: testlist=sanity env=ONLY=160 serverversion=2.12
Fixes: 31fef6845e8b ("LU-10680 mdd: create gc thread when no current transaction")
Signed-off-by: Xing Huang <hxing@ddn.com>
Change-Id: I6720b9e27a3a92e543ed877453802d23c0eef36d
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53773
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index 4195903..ca0ea72 100755 (executable)
@@ -16522,6 +16522,12 @@ test_160h() {
                stop_pids[mds$i]=$!
        done
 
+       do_facet mds1 "ls -l /sbin/umount*"
+       local umount="umount.lustre"
+       [[ -n "$(do_facet mds1 /bin/ls /sbin/$umount 2>/dev/null)" ]] ||
+               umount="umount"
+       echo "using /sbin/$umount on mds1"
+
        for i in $(mdts_nodes); do
                local facet
                local nb=0
@@ -16541,8 +16547,9 @@ test_160h() {
                        "R" 20 ||
                        error "$i: GC-thread not found in R-state"
                # check umounts of each MDT on MDS have reached kthread_stop()
-               [[ $(do_node $i pgrep umount | wc -l) -eq $nb ]] ||
-                       error "$i: expected $nb umount"
+               do_node $i "ps auxww | grep umount"
+               [[ $(do_node $i pgrep $umount | wc -l) -eq $nb ]] ||
+                       error "$i: expected $nb $umount"
                wait_update $i \
                        "ps -C umount -o state --no-headers | uniq" "D" 20 ||
                        error "$i: umount not found in D-state"