Commit 93a87f7d authored by Leigh Stoller's avatar Leigh Stoller

Do not try to boot/shutdown fakenodes that have rebootable=0.

parent fa12907e
......@@ -1580,6 +1580,9 @@ sub control_iface($;$) {
sub rebootable($;$) {
return NodeTypeInfo($_[0])->rebootable($_[1]);
}
sub isfakenode($;$) {
return NodeTypeInfo($_[0])->isfakenode($_[1]);
}
sub bios_waittime($;$) {
return NodeTypeInfo($_[0])->bios_waittime($_[1]);
}
......
......@@ -239,9 +239,15 @@ foreach my $node (@nodes) {
my $allocstate = $nodeobj->allocstate();
my $geninode = $nodeobj->isfednode();
my $shared = defined($nodeobj->sharing_mode());
next
if (!$nodeobj->isvirtnode());
# fake nodes that are not rebootable, also skip. Maybe we just
# skip all fakenodes, but not sure yet.
next
if ($nodeobj->isfakenode() && !$nodeobj->rebootable());
# Special hack for SPP nodes. Need to generalize this.
if ($shared && $nodeobj->type eq "sppvm") {
if ($mode eq "teardown" || $mode eq "halt") {
......
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