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.
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/fs/lustre-release/+/52533
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>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
. $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
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"