Skip to content
Snippets Groups Projects
Commit fdf2fb94 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 995c1fbb
No related merge requests found
...@@ -22,6 +22,7 @@ SRCDIR=`dirname $0` ...@@ -22,6 +22,7 @@ SRCDIR=`dirname $0`
PATH=$PWD/$SRCDIR:$SRCDIR:$SRCDIR/../utils:$PATH PATH=$PWD/$SRCDIR:$SRCDIR:$SRCDIR/../utils:$PATH
PTLDEBUG=${PTLDEBUG:--1} PTLDEBUG=${PTLDEBUG:--1}
SAVE_PWD=$PWD
LUSTRE=${LUSTRE:-`dirname $0`/..} LUSTRE=${LUSTRE:-`dirname $0`/..}
RLUSTRE=${RLUSTRE:-$LUSTRE} RLUSTRE=${RLUSTRE:-$LUSTRE}
MOUNTLUSTRE=${MOUNTLUSTRE:-/sbin/mount.lustre} MOUNTLUSTRE=${MOUNTLUSTRE:-/sbin/mount.lustre}
...@@ -1080,8 +1081,9 @@ test_32a() { ...@@ -1080,8 +1081,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
...@@ -1136,8 +1138,9 @@ test_32b() { ...@@ -1136,8 +1138,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
...@@ -1166,7 +1169,7 @@ test_32b() { ...@@ -1166,7 +1169,7 @@ test_32b() {
# a fully-functioning client # a fully-functioning client
echo "Check client and old fs contents" echo "Check client and old fs contents"
mount_client $MOUNT mount_client $MOUNT
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."
...@@ -1210,7 +1213,7 @@ test_35() { # bug 12459 ...@@ -1210,7 +1213,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