From: Nathaniel Clark Date: Fri, 13 Apr 2018 16:27:22 +0000 (-0400) Subject: LU-10898 tests: enable conf-sanity 32a/32d X-Git-Tag: 2.10.5-RC2~7 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=574e63fc86553510d87d02cd6d72785f341e48dc;p=fs%2Flustre-release.git LU-10898 tests: enable conf-sanity 32a/32d Stop zed service because it hold zfs module open. Export zpools before trying to rmmod zfs. Test-Parameters: trivial testlist=conf-sanity Test-Parameters: trivial testlist=conf-sanity mdtfilesystemtype=zfs ostfilesystemtype=zfs Lustre-change: https://review.whamcloud.com/31991 Lustre-commit: e8e6e3210e5eae78eefcc3f05e078a60c04dc80e Signed-off-by: Nathaniel Clark Change-Id: Id1b891cadb91d9e3631a2d067c9d76a2965c34ff Reviewed-by: Alex Zhuravlev Reviewed-by: Andreas Dilger Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/32520 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: James Nunez Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 251753d..f8c5623 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -84,6 +84,7 @@ fi [ $(facet_fstype $SINGLEMDS) = "zfs" ] && # bug number for skipped test: ALWAYS_EXCEPT="$ALWAYS_EXCEPT" +# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT! init_logging @@ -1559,16 +1560,22 @@ t32_reload_modules() { local node=$1 local all_removed=false local i=0 + local fstype=$(facet_fstype $SINGLEMDS) + + [ $fstype == "zfs" ] && do_rpc_nodes $node "service zed stop" while ((i < 20)); do echo "Unloading modules on $node: Attempt $i" - do_rpc_nodes $node $LUSTRE_RMMOD $(facet_fstype $SINGLEMDS) && + do_rpc_nodes $node $LUSTRE_RMMOD $fstype && all_removed=true do_rpc_nodes $node check_mem_leak || return 1 if $all_removed; then do_rpc_nodes $node load_modules return 0 fi + if [ $fstype == "zfs" ]; then + do_rpc_nodes $node "$ZPOOL status -v" + fi sleep 5 i=$((i + 1)) done @@ -2282,6 +2289,9 @@ t32_test() { error_noexit "Unmounting the MDT2" return 1 } + if [[ $fstype == zfs ]]; then + $r "$ZPOOL export t32fs-mdt2" + fi shall_cleanup_mdt1=false fi @@ -2289,12 +2299,18 @@ t32_test() { error_noexit "Unmounting the MDT" return 1 } + if [[ $fstype == zfs ]]; then + $r "$ZPOOL export t32fs-mdt1" + fi shall_cleanup_mdt=false $r $UMOUNT $tmp/mnt/ost || { error_noexit "Unmounting the OST" return 1 } + if [[ $fstype == zfs ]]; then + $r "$ZPOOL export t32fs-ost1" + fi shall_cleanup_ost=false t32_reload_modules $node || {