Skip to content
Snippets Groups Projects
Commit a4538157 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=13078

i=Adilger
b=13649
i=Nathan

SAVE_PWD fix; 32a, 32b 35 fixes: disk1_4 correct path, correct FSNAME.
parent 6bb86ccc
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ALWAYS_EXCEPT=" $CONF_SANITY_EXCEPT $MOUNTCONFSKIP 34a 36" ...@@ -22,6 +22,7 @@ ALWAYS_EXCEPT=" $CONF_SANITY_EXCEPT $MOUNTCONFSKIP 34a 36"
SRCDIR=`dirname $0` SRCDIR=`dirname $0`
PATH=$PWD/$SRCDIR:$SRCDIR:$SRCDIR/../utils:$PATH PATH=$PWD/$SRCDIR:$SRCDIR:$SRCDIR/../utils:$PATH
SAVE_PWD=$PWD
LUSTRE=${LUSTRE:-`dirname $0`/..} LUSTRE=${LUSTRE:-`dirname $0`/..}
RLUSTRE=${RLUSTRE:-$LUSTRE} RLUSTRE=${RLUSTRE:-$LUSTRE}
HOSTNAME=`hostname` HOSTNAME=`hostname`
...@@ -1085,8 +1086,9 @@ test_32a() { ...@@ -1085,8 +1086,9 @@ test_32a() {
# devices # devices
# or maybe this test is just totally useless on a client-only system # or maybe this test is just totally useless on a client-only system
[ -z "$TUNEFS" ] && skip "No tunefs" && return [ -z "$TUNEFS" ] && skip "No tunefs" && return
[ ! -r disk1_4.zip ] && skip "Cant find disk1_4.zip, skipping" && return local DISK1_4=$LUSTRE/tests/disk1_4.zip
unzip -o -j -d $TMP/$tdir disk1_4.zip || { skip "Cant unzip disk1_4, skipping" && return ; } [ ! -r $DISK1_4 ] && skip "Cant find $DISK1_4, skipping" && return
unzip -o -j -d $TMP/$tdir $DISK1_4 || { skip "Cant unzip $DISK1_4, skipping" && return ; }
load_modules load_modules
sysctl lnet.debug=$PTLDEBUG sysctl lnet.debug=$PTLDEBUG
...@@ -1135,8 +1137,9 @@ test_32b() { ...@@ -1135,8 +1137,9 @@ test_32b() {
# devices # devices
# or maybe this test is just totally useless on a client-only system # or maybe this test is just totally useless on a client-only system
[ -z "$TUNEFS" ] && skip "No tunefs" && return [ -z "$TUNEFS" ] && skip "No tunefs" && return
[ ! -r disk1_4.zip ] && skip "Cant find disk1_4.zip, skipping" && return local DISK1_4=$LUSTRE/tests/disk1_4.zip
unzip -o -j -d $TMP/$tdir disk1_4.zip || { skip "Cant unzip disk1_4, skipping" && return ; } [ ! -r $DISK1_4 ] && skip "Cant find $DISK1_4, skipping" && return
unzip -o -j -d $TMP/$tdir $DISK1_4 || { skip "Cant unzip $DISK1_4, skipping" && return ; }
load_modules load_modules
sysctl lnet.debug=$PTLDEBUG sysctl lnet.debug=$PTLDEBUG
NEWNAME=sofia NEWNAME=sofia
...@@ -1169,7 +1172,7 @@ test_32b() { ...@@ -1169,7 +1172,7 @@ test_32b() {
FSNAME=$NEWNAME FSNAME=$NEWNAME
mount_client $MOUNT mount_client $MOUNT
FSNAME=$OLDFS FSNAME=$OLDFS
set_and_check client "cat $LPROC/mdc/*/max_rpcs_in_flight" "lustre-MDT0000.mdc.max_rpcs_in_flight" || return 11 set_and_check client "cat $LPROC/mdc/*/max_rpcs_in_flight" "${NEWNAME}-MDT0000.mdc.max_rpcs_in_flight" || return 11
[ "$(cksum $MOUNT/passwd | cut -d' ' -f 1,2)" == "2479747619 779" ] || return 12 [ "$(cksum $MOUNT/passwd | cut -d' ' -f 1,2)" == "2479747619 779" ] || return 12
echo "ok." echo "ok."
...@@ -1277,7 +1280,7 @@ test_35() { # bug 12459 ...@@ -1277,7 +1280,7 @@ test_35() { # bug 12459
log "Set up a fake failnode for the MDS" log "Set up a fake failnode for the MDS"
FAKENID="127.0.0.2" FAKENID="127.0.0.2"
$LCTL conf_param ${FSNAME}-MDT0000.failover.node=$FAKENID || return 4 do_facet mds $LCTL conf_param ${FSNAME}-MDT0000.failover.node=$FAKENID || return 4
log "Wait for RECONNECT_INTERVAL seconds (10s)" log "Wait for RECONNECT_INTERVAL seconds (10s)"
sleep 10 sleep 10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment