Commit 990fcc0b authored by Mike Hibler's avatar Mike Hibler

Ignore state transitions from NORMALv2/ISUP -> BOOTING.

In the !BOOTINFO_EVENTS world, someone making a random DHCP request would
cause a state transition to BOOTING which would start a timeout ticking and
most likely would timeout in a couple of minutes and reboot the node.
parent 4925a276
......@@ -53,6 +53,13 @@ my $TBLOG = "@TBLOGFACIL@";
my $LOGFILE = "$TB/log/stated.log";
my $MAILFILE = "$TB/log/stated-mail.log";
# XXX if bootinfo is not sending the BOOTING event, then dhcpd is sending them
# and we have to watch out for spurrious BOOTING events caused by a node
# making runtime dhcp calls (e.g., it is running dhclient).
$| = 1;
use event;
......@@ -702,6 +709,17 @@ sub stateTransition($$) {
notify("Invalid transition for node $node from $mode/$oldstate " .
"to $newstate\n");
# XXX hack ignore spurious BOOTING transitions caused by dhcp
if (!$BIEVENTS &&
$oldstate eq TBDB_NODESTATE_ISUP &&
notify("$node: Ignored spurious BOOTING transition\n");
# Machines in the secure boot path are not allowed to jump
# willy-nilly into unknown states.
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