Commit e1d0181e authored by Leigh B. Stoller's avatar Leigh B. Stoller

After rebooting inner experimental nodes, force their eventstate to

ISUP or else they leave off at SHUTDOWN, which later confuses swapmod
(tbswap) which waits for them to reach ISUP, but of course they never
do. This is arguably a misfeature of os_setup, which should probably
not wait for nodes it didn't reboot, but I want to ponder that change.
Besides, doing this causes the nodes not to say SHUTDOWN in the web
interface.

Another change to add there (web interface) is to not say "possibly
down" for elabinelab nodes.
parent 01774260
......@@ -393,6 +393,15 @@ if (@expnodes) {
exit(($debug ? 0 : -1));
}
$UID = $SAVEUID;
#
# To avoid confusion later (with swapmod, which wants them to be ISUP),
# and so the web interface does not show the nodes as down, set the
# state to ISUP.
#
foreach my $node (@expnodes) {
TBSetNodeEventState($node, TBDB_NODESTATE_ISUP());
}
}
}
......@@ -1217,6 +1226,13 @@ sub UpdateEmulab()
# At this point, not much I can think of do. The nodes will reboot and
# enter the newnode MFS. I could add a script to wait for that in the
# inner elab, but not going to bother yet.
#
#
# To avoid confusion later (with swapmod, which wants them to be ISUP),
# and so the web interface does not show the nodes as down, set the
# state to ISUP.
#
foreach my $node (@nodes) {
TBSetNodeEventState($node, TBDB_NODESTATE_ISUP());
}
return 0;
}
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