Whamcloud - gitweb
LU-17152 tests: unmount NFS clients with zconf_umount_clients
authorJian Yu <yujian@whamcloud.com>
Tue, 3 Oct 2023 23:44:25 +0000 (16:44 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 6 Oct 2023 23:21:12 +0000 (23:21 +0000)
This patch fixes cleanup_nfs() to unmount NFS clients by running
zconf_umount_clients(), which can find and kill active processes
that are accessing the NFS mount point so as to avoid the
"device is busy" failure.

The patch also adds racer_on_nfs test into always_except list for
parallel-scale-nfsv4 due to LU-17154.

Lustre-change: https://review.whamcloud.com/52533
Lustre-commit: TBD (from 52a2147e8b0eca74f38b1b87991b53ccf25663cd)

Test-Parameters: trivial testlist=parallel-scale-nfsv4

Change-Id: I37a38502362399540c28e78d1343e768b490ce8b
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52534
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
lustre/tests/parallel-scale-nfsv4.sh
lustre/tests/setup-nfs.sh

index c1114f5..6ee8a10 100755 (executable)
@@ -4,4 +4,7 @@ LUSTRE=${LUSTRE:-$(dirname $0)/..}
 . $LUSTRE/tests/test-framework.sh
 init_test_env $@
 
+export ALWAYS_EXCEPT="$PARALLEL_SCALE_NFSV4_EXCEPT "
+always_except LU-17154 racer_on_nfs
+
 $LUSTRE/tests/parallel-scale-nfs.sh 4
index eb6720f..ea392d2 100755 (executable)
@@ -38,7 +38,7 @@ cleanup_nfs() {
        local EXPORTS_FILE=$DEFAULT_EXPORTS_FILE
 
        echo "Unmounting NFS clients"
-       do_nodes "$NFS_CLIENTS" "umount -v -f $NFS_MOUNT_POINT" || return 1
+       zconf_umount_clients "$NFS_CLIENTS" $NFS_MOUNT_POINT -f || return 1
        do_nodes "$NFS_CLIENTS" "systemctl stop nfs-idmapd" || return 1
 
        echo "Unexporting Lustre filesystem"