Commit 159552a3 authored by Robert P Ricci's avatar Robert P Ricci

Add a new timeout action; STATE

Allows the state_timeouts table to contain a new type of action
to take on timeout: STATE:newstate . This will force stated to
transition the node to newstate, and take any trigger actions
associated with that state.

We will use this to make timeouts in the secure reload path
force the node into the SECVIOLATION state.

Not yet tested.
parent 9f5a312f
......@@ -1052,6 +1052,11 @@ sub handleCtrlEvent($$) {
/^$TBTIMEOUTNOTIFY/ && do {
notify("Node $node has timed out in state $mode/$state\n");
last; };
/^STATE:([-\w\/]+)$/ && do {
my $newstate = $1;
# Force the node into a new state
stateTransition($node,$newstate);
last; };
notify("$node: Unknown Timeout Action: $action\n");
}
next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment