From: James Nunez Date: Mon, 21 Aug 2017 22:26:30 +0000 (-0600) Subject: LU-9899 tests: mount client on MGS for ost-pools X-Git-Tag: 2.10.53~29 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F38%2F28638%2F4;p=fs%2Flustre-release.git LU-9899 tests: mount client on MGS for ost-pools When a Lustre configuration has the MGS and MDS on separate nodes, the file system must be mounted on the MGS to allow OST pools to work properly. Add the ability to mount the file system on the MGS when necessary for the Lustre test suite ost-pools.sh. Test-Parameters: trivial testlist=ost-pools Signed-off-by: James Nunez Change-Id: Iff0663a38b92bb8e71c313897b12fca98fdae932 Reviewed-on: https://review.whamcloud.com/28638 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Arshad Hussain Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/ost-pools.sh b/lustre/tests/ost-pools.sh index 999f3ee..7773e3b 100755 --- a/lustre/tests/ost-pools.sh +++ b/lustre/tests/ost-pools.sh @@ -26,6 +26,12 @@ init_logging check_and_setup_lustre +if ! combined_mgs_mds; then + do_facet mgs "mkdir -p $MOUNT" + zconf_mount $mgs_HOST $MOUNT $MOUNT_OPTS || + error "unable to mount $MOUNT on the MGS" +fi + # 9 12.5 (min)" [ "$SLOW" = "no" ] && EXCEPT_SLOW="18 23b" @@ -1548,5 +1554,9 @@ cd $ORIG_PWD complete $SECONDS destroy_test_pools $FSNAME +if ! combined_mgs_mds; then + zconf_umount $mgs_HOST $MOUNT + do_facet mgs "rm -rf $MOUNT" +fi check_and_cleanup_lustre exit_status