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