Whamcloud - gitweb
b=20748
[fs/lustre-release.git] / lustre / tests / acceptance-small.sh
1 #!/bin/bash
2 # script which _must_ complete successfully (at minimum) before checkins to
3 # the CVS HEAD are allowed.
4 #set -vx
5 set -e
6
7 [ -z "$CONFIG" -a "$NAME" ] && CONFIGS=$NAME
8 [ "$CONFIGS" ] || CONFIGS="local"  #"local lov"
9 [ "$MAX_THREADS" ] || MAX_THREADS=20
10 RAMKB=`awk '/MemTotal:/ { print $2 }' /proc/meminfo`
11 if [ -z "$THREADS" ]; then
12         THREADS=$((RAMKB / 16384))
13         [ $THREADS -gt $MAX_THREADS ] && THREADS=$MAX_THREADS
14 fi
15 [ "$SIZE" ] || SIZE=$((RAMKB * 2))
16 [ "$RSIZE" ] || RSIZE=512
17 [ "$UID" ] || UID=1000
18 [ "$MOUNT" ] || MOUNT=/mnt/lustre
19 [ "$MOUNT2" ] || MOUNT2=${MOUNT}2
20 [ "$TMP" ] || TMP=/tmp
21 [ "$COUNT" ] || COUNT=1000
22 [ "$DEBUG_LVL" ] || DEBUG_LVL=0
23 [ "$DEBUG_OFF" ] || DEBUG_OFF="eval lctl set_param debug=\"$DEBUG_LVL\""
24 [ "$DEBUG_ON" ] || DEBUG_ON="eval lctl set_param debug=0x33f0484"
25
26 export TESTSUITE_LIST="RUNTESTS SANITY DBENCH BONNIE IOZONE FSX SANITYN LFSCK LIBLUSTRE RACER REPLAY_SINGLE CONF_SANITY RECOVERY_SMALL REPLAY_OST_SINGLE REPLAY_DUAL REPLAY_VBR INSANITY SANITY_QUOTA SANITY_SEC SANITY_GSS PERFORMANCE_SANITY LARGE_SCALE RECOVERY_MDS_SCALE RECOVERY_DOUBLE_SCALE RECOVERY_RANDOM_SCALE PARALLEL_SCALE LREPLICATE_TEST METADATA_UPDATES OST_POOLS SANITY_BENCHMARK"
27
28 if [ "$ACC_SM_ONLY" ]; then
29     for O in $TESTSUITE_LIST; do
30         export ${O}="no"
31     done
32     for O in $ACC_SM_ONLY; do
33         O=`echo ${O%.sh} | tr "-" "_"`
34         O=`echo $O | tr "[:lower:]" "[:upper:]"`
35         export ${O}="yes"
36     done
37 fi
38 LFSCK="no" # bug 13698
39
40 LIBLUSTRETESTS=${LIBLUSTRETESTS:-../liblustre/tests}
41
42 STARTTIME=`date +%s`
43 RANTEST=""
44
45 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
46 . $LUSTRE/tests/test-framework.sh
47 init_test_env $@
48
49 if $GSS; then
50     # liblustre doesn't support GSS
51     export LIBLUSTRE=no
52 else
53     export SANITY_GSS="no"
54 fi
55
56 SETUP=${SETUP:-setupall}
57 FORMAT=${FORMAT:-formatall}
58 CLEANUP=${CLEANUP:-stopall}
59
60 setup_if_needed() {
61     nfs_client_mode && return
62
63     local MOUNTED=$(mounted_lustre_filesystems)
64     if $(echo $MOUNTED | grep -w -q $MOUNT); then
65         check_config $MOUNT
66         init_facets_vars
67         init_param_vars
68         return
69     fi
70
71     echo "Lustre is not mounted, trying to do setup SETUP=$SETUP ... "
72     [ "$REFORMAT" ] && $FORMAT
73     $SETUP
74
75     MOUNTED=$(mounted_lustre_filesystems)
76     if ! $(echo $MOUNTED | grep -w -q $MOUNT); then
77         echo "Lustre is not mounted after setup! SETUP=$SETUP"
78         exit 1
79     fi
80 }
81
82 title() {
83     # update titlebar if stdin is attaached to an xterm
84     if ${UPDATE_TITLEBAR:-false}; then
85         if tty -s; then
86             case $TERM in 
87                 xterm*)
88                     echo -ne "\033]2; acceptance-small: $* \007" >&0
89                     ;;
90             esac
91         fi
92     fi 
93     log "-----============= acceptance-small: "$*" ============----- `date`"
94     RANTEST=${RANTEST}$*", "
95 }
96
97 skip_remost()
98 {
99         remote_ost_nodsh && log "SKIP: $1: remote OST with nodsh" && return 0
100         return 1
101 }
102
103 skip_remmds()
104 {
105         remote_mds_nodsh && log "SKIP: $1: remote MDS with nodsh" && return 0
106         return 1
107 }
108
109 for NAME in $CONFIGS; do
110         export NAME MOUNT START CLEAN
111         . $LUSTRE/tests/cfg/$NAME.sh
112
113         assert_env mds_HOST MDS_MKFS_OPTS 
114         assert_env ost_HOST OST_MKFS_OPTS OSTCOUNT
115         assert_env FSNAME MOUNT MOUNT2
116
117         setup_if_needed
118
119         MSKIPPED=0
120         OSKIPPED=0
121         if [ "$RUNTESTS" != "no" ]; then
122                 title runtests
123                 bash runtests
124                 $CLEANUP
125                 $SETUP
126                 RUNTESTS="done"
127         fi
128
129         if [ "$SANITY" != "no" ]; then
130                 title sanity
131                 MOUNT2="" bash sanity.sh
132                 $CLEANUP
133                 $SETUP
134                 SANITY="done"
135         fi
136
137         which dbench > /dev/null 2>&1 || DBENCH=no
138         if [ "$DBENCH" != "no" ]; then
139                 title dbench
140                 DBENCHDIR=$MOUNT/$HOSTNAME
141                 mkdir -p $DBENCHDIR
142                 SPACE=`df -P $MOUNT | tail -n 1 | awk '{ print $4 }'`
143                 DB_THREADS=$((SPACE / 50000))
144                 [ $THREADS -lt $DB_THREADS ] && DB_THREADS=$THREADS
145
146                 $DEBUG_OFF
147                 myUID=$RUNAS_ID
148                 myRUNAS=$RUNAS
149                 FAIL_ON_ERROR=false check_runas_id_ret $myUID $myUID $myRUNAS || { myRUNAS="" && myUID=$UID; }
150                 chown $myUID:$myUID $DBENCHDIR
151                 duration=""
152                 [ "$SLOW" = "no" ] && duration=" -t 120"
153                 if [ "$SLOW" != "no" -o $DB_THREADS -eq 1 ]; then
154                         $myRUNAS bash rundbench -D $DBENCHDIR 1 $duration || error "dbench failed!"
155                         $DEBUG_ON
156                         $CLEANUP
157                         $SETUP
158                 fi
159                 if [ $DB_THREADS -gt 1 ]; then
160                         $DEBUG_OFF
161                         $myRUNAS bash rundbench -D $DBENCHDIR $DB_THREADS $duration
162                         $DEBUG_ON
163                         $CLEANUP
164                         $SETUP
165                 fi
166                 rm -rf $DBENCHDIR
167                 DBENCH="done"
168         fi
169
170         which bonnie++ > /dev/null 2>&1 || BONNIE=no
171         if [ "$BONNIE" != "no" ]; then
172                 title bonnie
173                 BONDIR=$MOUNT/d0.bonnie
174                 mkdir -p $BONDIR
175                 $LFS setstripe -c -1 $BONDIR
176                 sync
177                 MIN=`lctl get_param -n osc.*.kbytesavail | sort -n | head -n1`
178                 SPACE=$(( OSTCOUNT * MIN ))
179                 [ $SPACE -lt $SIZE ] && SIZE=$((SPACE * 3 / 4))
180                 log "min OST has ${MIN}kB available, using ${SIZE}kB file size"
181                 $DEBUG_OFF
182                 myUID=$RUNAS_ID
183                 myRUNAS=$RUNAS
184                 FAIL_ON_ERROR=false check_runas_id_ret $myUID $myUID $myRUNAS || { myRUNAS="" && myUID=$UID; }
185                 chown $myUID:$myUID $BONDIR             
186                 $myRUNAS bonnie++ -f -r 0 -s$((SIZE / 1024)) -n 10 -u$myUID:$myUID -d$BONDIR
187                 $DEBUG_ON
188                 $CLEANUP
189                 $SETUP
190                 BONNIE="done"
191         fi
192
193         export O_DIRECT
194         [ "$SLOW" = "no" ] && export IOZONE=no # 5 minutes
195
196         which iozone > /dev/null 2>&1 || IOZONE=no
197         if [ "$IOZONE" != "no" ]; then
198                 title iozone
199                 IOZDIR=$MOUNT/d0.iozone
200                 mkdir -p $IOZDIR
201                 $LFS setstripe -c -1 $IOZDIR
202                 sync
203                 MIN=`lctl get_param -n osc.*.kbytesavail | sort -n | head -n1`
204                 SPACE=$(( OSTCOUNT * MIN ))
205                 [ $SPACE -lt $SIZE ] && SIZE=$((SPACE * 3 / 4))
206                 log "min OST has ${MIN}kB available, using ${SIZE}kB file size"
207                 IOZONE_OPTS="-i 0 -i 1 -i 2 -e -+d -r $RSIZE"
208                 IOZFILE="$IOZDIR/iozone"
209                 IOZLOG=$TMP/iozone.log
210                 # $SPACE was calculated with all OSTs
211                 $DEBUG_OFF
212                 myUID=$RUNAS_ID
213                 myRUNAS=$RUNAS
214                 FAIL_ON_ERROR=false check_runas_id_ret $myUID $myUID $myRUNAS || { myRUNAS="" && myUID=$UID; }
215                 chown $myUID:$myUID $IOZDIR
216                 $myRUNAS iozone $IOZONE_OPTS -s $SIZE -f $IOZFILE 2>&1 | tee $IOZLOG
217                 tail -1 $IOZLOG | grep -q complete || \
218                         { error "iozone (1) failed" && false; }
219                 rm -f $IOZLOG
220                 $DEBUG_ON
221                 $CLEANUP
222                 $SETUP
223
224                 # check if O_DIRECT support is implemented in kernel
225                 if [ -z "$O_DIRECT" ]; then
226                         touch $MOUNT/f.iozone
227                         if ! ./directio write $MOUNT/f.iozone 0 1; then
228                                 log "SKIP iozone DIRECT IO test"
229                                 O_DIRECT=no
230                         fi
231                         rm -f $MOUNT/f.iozone
232                 fi
233                 if [ "$O_DIRECT" != "no" -a "$IOZONE_DIR" != "no" ]; then
234                         $DEBUG_OFF
235                         $myRUNAS iozone -I $IOZONE_OPTS -s $SIZE -f $IOZFILE.odir 2>&1 | tee $IOZLOG
236                         tail -1 $IOZLOG | grep -q complete || \
237                                 { error "iozone (2) failed" && false; }
238                         rm -f $IOZLOG
239                         $DEBUG_ON
240                         $CLEANUP
241                         $SETUP
242                 fi
243
244                 SPACE=`df -P $MOUNT | tail -n 1 | awk '{ print $4 }'`
245                 IOZ_THREADS=$((SPACE / SIZE * 2 / 3 ))
246                 [ $THREADS -lt $IOZ_THREADS ] && IOZ_THREADS=$THREADS
247                 IOZVER=`iozone -v | awk '/Revision:/ {print $3}' | tr -d .`
248                 if [ "$IOZ_THREADS" -gt 1 -a "$IOZVER" -ge 3145 ]; then
249                         $LFS setstripe -c -1 $IOZDIR
250                         $DEBUG_OFF
251                         THREAD=1
252                         IOZFILE=" "
253                         while [ $THREAD -le $IOZ_THREADS ]; do
254                                 IOZFILE="$IOZFILE $IOZDIR/iozone.$THREAD"
255                                 THREAD=$((THREAD + 1))
256                         done
257                         $myRUNAS iozone $IOZONE_OPTS -s $((SIZE / IOZ_THREADS)) -t $IOZ_THREADS -F $IOZFILE 2>&1 | tee $IOZLOG
258                         tail -1 $IOZLOG | grep -q complete || \
259                                 { error "iozone (3) failed" && false; }
260                         rm -f $IOZLOG
261                         $DEBUG_ON
262                         $CLEANUP
263                         $SETUP
264                 elif [ $IOZVER -lt 3145 ]; then
265                         VER=`iozone -v | awk '/Revision:/ { print $3 }'`
266                         echo "iozone $VER too old for multi-thread test"
267                 fi
268                 IOZONE="done"
269         fi
270
271         if [ "$FSX" != "no" ]; then
272                 title fsx
273                 FSX_SIZE=$((RAMKB / 2))
274                 SPACE=`df -P $MOUNT | tail -n 1 | awk '{ print $4 }'`
275                 [ $SPACE -lt $FSX_SIZE ] && FSX_SIZE=$((SPACE * 3 / 4))
276                 $DEBUG_OFF
277                 FSX_SEED=${FSX_SEED:-$RANDOM}
278                 rm -f $MOUNT/fsxfile
279                 $LFS setstripe -c -1 $MOUNT/fsxfile
280                 echo Using FSX_SEED=$FSX_SEED FSX_SIZE=$FSX_SIZE COUNT=$COUNT
281                 ./fsx -c 50 -p 1000 -S $FSX_SEED -P $TMP -l $FSX_SIZE \
282                         -N $(($COUNT * 100)) $MOUNT/fsxfile
283                 $DEBUG_ON
284                 $CLEANUP
285                 $SETUP
286                 FSX="done"
287         fi      
288
289         if [ "$SANITYN" != "no" ]; then
290                 title sanityN
291                 $DEBUG_OFF
292
293                 mkdir -p $MOUNT2
294                 mount_client $MOUNT2
295                 #echo "can't mount2 for '$NAME', skipping sanityN.sh"
296                 START=: CLEAN=: bash sanityN.sh
297                 [ "$(mount | grep $MOUNT2)" ] && umount $MOUNT2
298
299                 $DEBUG_ON
300                 $CLEANUP
301                 $SETUP
302                 SANITYN="done"
303         fi
304
305         [ "$LFSCK" != "no" ] && remote_mds && log "Remote MDS, skipping LFSCK test" && LFSCK=no && MSKIPPED=1
306         [ "$LFSCK" != "no" ] && remote_ost && log "Remote OST, skipping LFSCK test" && LFSCK=no && OSKIPPED=1
307         if [ "$LFSCK" != "no" ]; then
308                 title lfsck
309                 if [ -x /usr/sbin/lfsck ]; then
310                         bash lfscktest.sh
311                 else
312                         log "$($E2FSCK -V)"
313                         log "SKIP: $E2FSCK does not support lfsck"
314                 fi
315                 LFSCK="done"
316         fi
317
318         [ "$NETTYPE" = "tcp" -o "$NETTYPE" = "ptl" ] || LIBLUSTRE=no # bug 15660
319         if [ "$LIBLUSTRE" != "no" ] && ! check_versions ; then
320                 skip liblustre version mismatch: cli $CLIVER, mds $MDSVER, ost $OSTVER
321                 LIBLUSTRE=no    # bug 17696
322         fi
323         if [ "$LIBLUSTRE" != "no" ]; then
324                 title liblustre
325                 assert_env MGSNID MOUNT2
326                 export LIBLUSTRE_MOUNT_POINT=$MOUNT2
327                 export LIBLUSTRE_MOUNT_RETRY=5
328                 export LIBLUSTRE_MOUNT_TARGET=$MGSNID:/$FSNAME
329                 export LIBLUSTRE_TIMEOUT=`lctl get_param -n timeout`
330                 #export LIBLUSTRE_DEBUG_MASK=`lctl get_param -n debug`
331                 if [ -x $LIBLUSTRETESTS/sanity ]; then
332                         mkdir -p $MOUNT2
333                         if [ "$LIBLUSTRE_EXCEPT" ]; then
334                                 LIBLUSTRE_OPT="$LIBLUSTRE_OPT \
335                                         $(echo ' '$LIBLUSTRE_EXCEPT  | sed -re 's/\s+/ -e /g')"
336                         fi
337                         echo $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET $LIBLUSTRE_OPT
338                         $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET $LIBLUSTRE_OPT
339                 fi
340                 $CLEANUP
341                 #$SETUP
342                 LIBLUSTRE="done"
343         fi
344
345         [ "$RACER" != "no" ] && [ -n "$CLIENTS" -a "$PDSH" = "no_dsh" ] && log "Remote client with no_dsh" && RACER=no 
346         if [ "$RACER" != "no" ]; then
347                 title racer
348                 setup_if_needed
349                 DURATION=${DURATION:-900}
350                 [ "$SLOW" = "no" ] && DURATION=300
351                 RACERCLIENTS=$HOSTNAME
352                 [ ! -z ${CLIENTS} ] && RACERCLIENTS=$CLIENTS
353                 log "racer on clients: $RACERCLIENTS DURATION=$DURATION RACERDIRS=$RACERDIRS"
354                 CLIENTS=${RACERCLIENTS} DURATION=$DURATION bash runracer $RACERDIRS
355                 $CLEANUP
356                 $SETUP
357                 RACER="done"
358         fi
359 done
360
361 if [ "$SANITY_BENCHMARK" != "no" ]; then
362         title sanity-benchmark
363         bash sanity-benchmark.sh
364         SANITY_BENCHMARK="done"
365 fi
366
367 [ "$REPLAY_SINGLE" != "no" ] && skip_remmds replay-single && REPLAY_SINGLE=no && MSKIPPED=1
368 if [ "$REPLAY_SINGLE" != "no" ]; then
369         title replay-single
370         bash replay-single.sh
371         REPLAY_SINGLE="done"
372 fi
373
374 [ "$CONF_SANITY" != "no" ] && skip_remmds conf-sanity && CONF_SANITY=no && MSKIPPED=1
375 [ "$CONF_SANITY" != "no" ] && skip_remost conf-sanity && CONF_SANITY=no && OSKIPPED=1
376 if [ "$CONF_SANITY" != "no" ]; then
377         title conf-sanity
378         bash conf-sanity.sh
379         CONF_SANITY="done"
380 fi
381
382 [ "$RECOVERY_SMALL" != "no" ] && skip_remmds recover-small && RECOVERY_SMALL=no && MSKIPPED=1
383 if [ "$RECOVERY_SMALL" != "no" ]; then
384         title recovery-small
385         bash recovery-small.sh
386         RECOVERY_SMALL="done"
387 fi
388
389 [ "$REPLAY_OST_SINGLE" != "no" ] && skip_remost replay-ost-single && REPLAY_OST_SINGLE=no && OSKIPPED=1
390 if [ "$REPLAY_OST_SINGLE" != "no" ]; then
391         title replay-ost-single
392         bash replay-ost-single.sh
393         REPLAY_OST_SINGLE="done"
394 fi
395
396 [ "$REPLAY_DUAL" != "no" ] && skip_remost replay-dual && REPLAY_DUAL=no && OSKIPPED=1
397 if [ "$REPLAY_DUAL" != "no" ]; then
398         title replay-dual
399         bash replay-dual.sh
400         REPLAY_DUAL="done"
401 fi
402
403 [ "$REPLAY_VBR" != "no" ] && skip_remmds replay-vbr && REPLAY_VBR=no && MSKIPPED=1
404 if [ "$REPLAY_VBR" != "no" ]; then
405         title replay-vbr
406         bash replay-vbr.sh
407         REPLAY_VBR="done"
408 fi
409
410 [ "$INSANITY" != "no" ] && skip_remmds insanity && INSANITY=no && MSKIPPED=1
411 [ "$INSANITY" != "no" ] && skip_remost insanity && INSANITY=no && OSKIPPED=1
412 if [ "$INSANITY" != "no" ]; then
413         title insanity
414         bash insanity.sh -r
415         INSANITY="done"
416 fi
417
418 [ "$SANITY_QUOTA" != "no" ] && skip_remmds sanity-quota && SANITY_QUOTA=no && MSKIPPED=1
419 [ "$SANITY_QUOTA" != "no" ] && skip_remost sanity-quota && SANITY_QUOTA=no && OSKIPPED=1
420 if [ "$SANITY_QUOTA" != "no" ]; then
421         title sanity-quota
422         bash sanity-quota.sh
423         SANITY_QUOTA="done"
424 fi
425
426 [ "$SANITY_SEC" != "no" ] && skip_remmds sanity-sec && SANITY_SEC=no && MSKIPPED=1
427 [ "$SANITY_SEC" != "no" ] && skip_remost sanity-sec && SANITY_SEC=no && OSKIPPED=1
428 if [ "$SANITY_SEC" != "no" ]; then
429         title sanity-sec
430         bash sanity-sec.sh
431         SANITY_SEC="done"
432 fi
433
434 [ "$SANITY_GSS" != "no" ] && skip_remmds sanity-gss && SANITY_GSS=no && MSKIPPED=1
435 if [ "$SANITY_GSS" != "no" ]; then
436         title sanity-gss
437         bash sanity-gss.sh
438         SANITY_GSS="done"
439 fi
440
441
442 [ "$LREPLICATE_TEST" != "no" ] && skip_remmds lreplicate-test && LREPLICATE_TEST=no && MSKIPPED=1
443 [ "$LREPLICATE_TEST" != "no" ] && skip_remost lreplicate-test && LREPLICATE_TEST=no && OSKIPPED=1
444 if [ "$LREPLICATE_TEST" != "no" ]; then
445         title lreplicate-test
446         bash lreplicate-test.sh
447         LREPLICATE_TEST="done"
448 fi
449
450 [ "$OST_POOLS" != "no" ] && skip_remmds ost-pools && OST_POOLS=no && MSKIPPED=1
451 [ "$OST_POOLS" != "no" ] && skip_remost ost-pools && OST_POOLS=no && OSKIPPED=1
452 if [ "$OST_POOLS" != "no" ]; then
453         title ost-pools
454         bash ost-pools.sh
455         OST_POOLS="done"
456 fi
457
458
459 [ "$SLOW" = no ] && PERFORMANCE_SANITY="no"
460 [ -x "$MDSRATE" ] || PERFORMANCE_SANITY="no"
461 which mpirun > /dev/null 2>&1 || PERFORMANCE_SANITY="no"
462 if [ "$PERFORMANCE_SANITY" != "no" ]; then
463         title performance-sanity
464         bash performance-sanity.sh
465         PERFORMANCE_SANITY="done"
466 fi
467
468 [ "$LARGE_SCALE" != "no" ] && skip_remmds large-scale && LARGE_SCALE=no && MSKIPPED=1
469 if [ "$LARGE_SCALE" != "no" ]; then
470         title large-scale
471         bash large-scale.sh
472         LARGE_SCALE="done"
473 fi
474
475 [ "$RECOVERY_MDS_SCALE" != "no" ] && skip_remmds recovery-mds-scale && RECOVERY_MDS_SCALE=no && MSKIPPED=1
476 [ "$RECOVERY_MDS_SCALE" != "no" ] && skip_remost recovery-mds-scale && RECOVERY_MDS_SCALE=no && OSKIPPED=1
477 if [ "$RECOVERY_MDS_SCALE" != "no" ]; then
478         title recovery-mds-scale
479         bash recovery-mds-scale.sh
480         RECOVERY_MDS_SCALE="done"
481 fi
482
483 [ "$RECOVERY_DOUBLE_SCALE" != "no" ] && skip_remmds recovery-double-scale && RECOVERY_DOUBLE_SCALE=no && MSKIPPED=1
484 [ "$RECOVERY_DOUBLE_SCALE" != "no" ] && skip_remost recovery-double-scale && RECOVERY_DOUBLE_SCALE=no && OSKIPPED=1
485 if [ "$RECOVERY_DOUBLE_SCALE" != "no" ]; then
486         title recovery-double-scale
487         bash recovery-double-scale.sh
488         RECOVERY_DOUBLE_SCALE="done"
489 fi
490
491 [ "$RECOVERY_RANDOM_SCALE" != "no" ] && skip_remmds recovery-random-scale && RECOVERY_RANDOM_SCALE=no && MSKIPPED=1
492 if [ "$RECOVERY_RANDOM_SCALE" != "no" ]; then
493         title recovery-random-scale
494         bash recovery-random-scale.sh
495         RECOVERY_RANDOM_SCALE="done"
496 fi
497
498 which mpirun > /dev/null 2>&1 || PARALLEL_SCALE="no"
499 if [ "$PARALLEL_SCALE" != "no" ]; then
500         title parallel-scale
501         bash parallel-scale.sh
502         PARALLEL_SCALE="done"
503 fi
504
505 if [ "$METADATA_UPDATES" != "no" ]; then
506         title metadata-updates
507         bash metadata-updates.sh
508         METADATA_UPDATES="done"
509 fi
510
511 RC=$?
512 title FINISHED
513 echo "Finished at `date` in $((`date +%s` - $STARTTIME))s"
514 echo "Tests ran: $RANTEST"
515 print_summary
516 [ "$MSKIPPED" = 1 ] && log "FAIL: remote MDS tests skipped" && RC=1
517 [ "$OSKIPPED" = 1 ] && log "FAIL: remote OST tests skipped" && RC=1
518 echo "$0: completed with rc $RC" && exit $RC