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