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

b=17634

i=Yury.Umanets
insanity cleanup (remove dup fn, sync with HEAD t-f)
parent c584acbe
No related merge requests found
...@@ -73,13 +73,6 @@ shutdown_client() { ...@@ -73,13 +73,6 @@ shutdown_client() {
fi fi
} }
reboot_node() {
NODE=$1
if [ "$FAILURE_MODE" = HARD ]; then
$POWER_UP $NODE
fi
}
fail_clients() { fail_clients() {
num=$1 num=$1
...@@ -105,7 +98,7 @@ fail_clients() { ...@@ -105,7 +98,7 @@ fail_clients() {
echo "down clients: $DOWN_CLIENTS" echo "down clients: $DOWN_CLIENTS"
for client in $DOWN_CLIENTS; do for client in $DOWN_CLIENTS; do
reboot_node $client boot_node $client
done done
DOWN_NUM=`echo $DOWN_CLIENTS | wc -w` DOWN_NUM=`echo $DOWN_CLIENTS | wc -w`
client_rmdirs client_rmdirs
......
...@@ -443,6 +443,13 @@ reboot_facet() { ...@@ -443,6 +443,13 @@ reboot_facet() {
fi fi
} }
boot_node() {
local node=$1
if [ "$FAILURE_MODE" = HARD ]; then
$POWER_UP $node
fi
}
# verify that lustre actually cleaned up properly # verify that lustre actually cleaned up properly
cleanup_check() { cleanup_check() {
[ -f $CATASTROPHE ] && [ `cat $CATASTROPHE` -ne 0 ] && \ [ -f $CATASTROPHE ] && [ `cat $CATASTROPHE` -ne 0 ] && \
......
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