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

b=16897

i=Adilger
i=Tappro
test_7-b fix: use do_nodes instead of loop to run rundbench
parent 23676499
No related branches found
No related tags found
No related merge requests found
......@@ -1811,31 +1811,22 @@ test_70b () {
zconf_mount_clients $CLIENTS $DIR
local duration="-t 60"
local cmd="rundbench 1 $duration "
local duration=120
[ "$SLOW" = "no" ] && duration=60
local cmd="rundbench 1 -t $duration"
local PID=""
for CLIENT in ${CLIENTS//,/ }; do
$PDSH $CLIENT "set -x; PATH=:$PATH:$LUSTRE/utils:$LUSTRE/tests/:${DBENCH_LIB} DBENCH_LIB=${DBENCH_LIB} $cmd" &
PID=$!
echo $PID >pid.$CLIENT
echo "Started load PID=`cat pid.$CLIENT`"
done
do_nodes $CLIENTS "set -x; PATH=:$PATH:$LUSTRE/utils:$LUSTRE/tests/:$DBENCH_LIB DBENCH_LIB=$DBENCH_LIB $cmd" &
PID=$!
log "Started rundbench load PID=$PID ..."
sleep $((duration / 4))
replay_barrier $SINGLEMDS
sleep 3 # give clients a time to do operations
log "$TESTNAME fail mds 1"
fail $SINGLEMDS
# wait for client to reconnect to MDS
sleep $TIMEOUT
for CLIENT in ${CLIENTS//,/ }; do
PID=`cat pid.$CLIENT`
wait $PID
rc=$?
echo "load on ${CLIENT} returned $rc"
done
wait $PID || error "rundbench load on $CLIENTS failed!"
}
run_test 70b "mds recovery; $CLIENTCOUNT clients"
......
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