From 936ceb19d4379670c685d78718c7689a8926520d Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 22 Oct 2008 17:56:15 +0000 Subject: [PATCH] b=16551 (att 19784) o=Adilger i=grev skip replay/recovery tests if remote MDS/OSS with nodsh b=16551 (att 19835) i=Nathan do skip_rem[mds|ost] check only if test suit is run; fail acc-sm if tests suits were skipped due to nodsh b=17326 i=Alexey.Lyashkov remove now-useless remount/reconfig for liblustre; always add accept=all for lnet module --- lustre/tests/test-framework.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 1dcc9ed..8aae600 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -171,6 +171,7 @@ load_modules() { [ -f /etc/modprobe.d/Lustre ] && MODPROBECONF=/etc/modprobe.d/Lustre [ -z "$LNETOPTS" -a -n "$MODPROBECONF" ] && \ LNETOPTS=$(awk '/^options lnet/ { print $0}' $MODPROBECONF | sed 's/^options lnet //g') + echo $LNETOPTS | grep -q "accept=all" || LNETOPTS="$LNETOPTS accept=all"; echo "lnet options: '$LNETOPTS'" # note that insmod will ignore anything in modprobe.conf load_module ../lnet/lnet/lnet $LNETOPTS @@ -1182,15 +1183,6 @@ set_nodes_failloc () { done } -set_nodes_failloc () { - local nodes=$1 - local node - - for node in $nodes ; do - do_node $node sysctl -w lustre.fail_loc=$2 - done -} - cancel_lru_locks() { $LCTL mark "cancel_lru_locks $1 start" for d in `lctl get_param -N ldlm.namespaces.*.lru_size | egrep -i $1`; do @@ -1514,7 +1506,7 @@ osc_to_ost() remote_mds () { - [ -z "$(lctl dl | grep mdt)" ] + [ "$mds_HOST" != "$(hostname)" ] } remote_mds_nodsh() @@ -1524,7 +1516,7 @@ remote_mds_nodsh() remote_ost () { - [ -z "$(lctl dl | grep ost)" ] + [ "$ost_HOST" != "$(hostname)" ] } remote_ost_nodsh() -- 1.8.3.1