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

b=16808

i=Adilger
check CATASTROPHE on all nodes
parent 2bacca58
No related branches found
No related tags found
No related merge requests found
...@@ -1421,8 +1421,7 @@ run_one() { ...@@ -1421,8 +1421,7 @@ run_one() {
cd $SAVE_PWD cd $SAVE_PWD
reset_fail_loc reset_fail_loc
check_grant ${testnum} || error "check_grant $testnum failed with $?" check_grant ${testnum} || error "check_grant $testnum failed with $?"
[ -f $CATASTROPHE ] && [ `cat $CATASTROPHE` -ne 0 ] && \ check_catastrophe || error "LBUG/LASSERT detected"
error "LBUG/LASSERT detected"
ps auxww | grep -v grep | grep -q multiop && error "multiop still running" ps auxww | grep -v grep | grep -q multiop && error "multiop still running"
pass "($((`date +%s` - $BEFORE))s)" pass "($((`date +%s` - $BEFORE))s)"
unset TESTNAME unset TESTNAME
...@@ -1547,6 +1546,12 @@ nodes_list () { ...@@ -1547,6 +1546,12 @@ nodes_list () {
echo $myNODES_sort 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 () { init_clients_lists () {
# Sanity check: exclude the local client from RCLIENTS # Sanity check: exclude the local client from RCLIENTS
local rclients=$(echo " $RCLIENTS " | sed -re "s/\s+$HOSTNAME\s+/ /g") local rclients=$(echo " $RCLIENTS " | sed -re "s/\s+$HOSTNAME\s+/ /g")
...@@ -1707,3 +1712,12 @@ restore_lustre_params() { ...@@ -1707,3 +1712,12 @@ restore_lustre_params() {
done 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