From bb4c3bc38eeeeec111c14c024669465addb30c70 Mon Sep 17 00:00:00 2001 From: James Nunez Date: Mon, 21 Aug 2017 16:26:30 -0600 Subject: [PATCH] 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 --- lustre/tests/ost-pools.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 1.8.3.1