Skip to content
Snippets Groups Projects
Commit 9feba9ec authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=16808

i=Adilger
check CATASTROPHE on all nodes
parent 84fc6974
No related merge requests found
......@@ -1649,8 +1649,7 @@ run_one() {
cd $SAVE_PWD
reset_fail_loc
check_grant ${testnum} || error "check_grant $testnum failed with $?"
[ -f $CATASTROPHE ] && [ `cat $CATASTROPHE` -ne 0 ] && \
error "LBUG/LASSERT detected"
check_catastrophe || error "LBUG/LASSERT detected"
ps auxww | grep -v grep | grep -q multiop && error "multiop still running"
pass "($((`date +%s` - $BEFORE))s)"
unset TESTNAME
......@@ -1793,6 +1792,12 @@ nodes_list () {
echo $myNODES_sort
}
remote_nodes_list () {
local rnodes=$(nodes_list)
rnodes=$(echo " $rnodes " | sed -re "s/\s+$HOSTNAME\s+/ /g")
echo $rnodes
}
init_clients_lists () {
# Sanity check: exclude the local client from RCLIENTS
local rclients=$(echo " $RCLIENTS " | sed -re "s/\s+$HOSTNAME\s+/ /g")
......@@ -1920,3 +1925,12 @@ restore_lustre_params() {
done
}
check_catastrophe () {
local rnodes=$(comma_list $(remote_nodes_list))
[ -f $CATASTROPHE ] && [ `cat $CATASTROPHE` -ne 0 ] && return 1
if [ $rnodes ]; then
do_nodes $rnodes "[ -f $CATASTROPHE ] && { [ `cat $CATASTROPHE` -eq 0 ] || false; } || true"
fi
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment