From: grev Date: Wed, 3 Dec 2008 18:22:57 +0000 (+0000) Subject: b=17853 X-Git-Tag: v1_9_120~21 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a7fdc06fe0cc1273ee902ac159cd675fd40e74e5;p=fs%2Flustre-release.git b=17853 i=Adilger check_config fix for NETTYPE=ptl --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 9599f0a..afbe3e4 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1308,13 +1308,18 @@ init_versions_vars () { check_config () { local mntpt=$1 - + local myMGS_host=$mgs_HOST + if [ "$NETTYPE" = "ptl" ]; then + myMGS_host=$(h2ptl $mgs_HOST | sed -e s/@ptl//) + fi + echo Checking config lustre mounted on $mntpt local mgshost=$(mount | grep " $mntpt " | awk -F@ '{print $1}') mgshost=$(echo $mgshost | awk -F: '{print $1}') - if [ "$mgshost" != "$mgs_HOST" ]; then + + if [ "$mgshost" != "$myMGS_host" ]; then FAIL_ON_ERROR=true \ - error "Bad config file: lustre is mounted with mgs $mgshost, but mgs_HOST=$mgs_HOST + error "Bad config file: lustre is mounted with mgs $mgshost, but mgs_HOST=$mgs_HOST, NETTYPE=$NETTYPE Please use correct config or set mds_HOST correctly!" fi }