X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Frecovery-double-scale.sh;h=57dc0b2ef684fbb794c303d8fd4b2cf90a8974e0;hb=8ee6e1c8825c4fabfd6c39db11081839ca53d454;hp=a5ef06f98ab485de1b3de3c64ea27687be92d02f;hpb=dee5f24114531ec34fc56ce2826ada9e5690aabc;p=fs%2Flustre-release.git diff --git a/lustre/tests/recovery-double-scale.sh b/lustre/tests/recovery-double-scale.sh index a5ef06f..57dc0b2 100644 --- a/lustre/tests/recovery-double-scale.sh +++ b/lustre/tests/recovery-double-scale.sh @@ -1,6 +1,5 @@ #!/bin/bash -# vim:shiftwidth=4:softtabstop=4:tabstop=4: - +# # All pairwise combinations of node failures. # Was cmd3-17 # @@ -13,15 +12,16 @@ set -e ONLY=${ONLY:-"$*"} +LUSTRE=${LUSTRE:-$(dirname $0)/..} +. $LUSTRE/tests/test-framework.sh +init_test_env $@ +init_logging + # bug number for skipped test: ALWAYS_EXCEPT="$RECOVERY_DOUBLE_SCALE_EXCEPT" # UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT! -LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)} -. $LUSTRE/tests/test-framework.sh -init_test_env $@ -. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} -init_logging +build_test_filter remote_mds_nodsh && skip_env "remote MDS with nodsh" && exit 0 remote_ost_nodsh && skip_env "remote OST with nodsh" && exit 0 @@ -193,20 +193,16 @@ Status: $result: rc=$rc" # stop the client loads stop_client_loads $NODES_TO_USE $LOAD_PID_FILE - if [ $rc -ne 0 ]; then - # we are interested in only on failed clients and servers - local failedclients=$(cat $END_RUN_FILE | grep -v $0) - # FIXME: need ostfailover-s nodes also for FLAVOR=OST - gather_logs $(comma_list $(osts_nodes) $(mdts_nodes) \ - $mdsfailover_HOST $failedclients) - fi + if [ $rc -ne 0 ]; then + # we are interested in only on failed clients and servers + local failedclients=$(cat $END_RUN_FILE | grep -v $0) + gather_logs $(comma_list $(all_server_nodes) $failedclients) + fi exit $rc } ################################## Main Flow ################################### -build_test_filter - check_and_setup_lustre rm -rf $DIR/[Rdfs][0-9]*