Commit 4b555177 authored by Leigh Stoller's avatar Leigh Stoller

virtnode hack: neuter for virtual nodes (for now).

parent 360dcfd0
......@@ -146,6 +146,23 @@ else {
}
}
#
# VIRTNODE HACK: Virtual nodes are special. Do not reboot!
#
my @temp = ();
foreach my $node ( @nodes ) {
if (TBIsNodeVirtual($node)) {
print "*** Skipping virtual node $node ...\n";
next;
}
push(@temp, $node);
}
@nodes = @temp;
if (! @nodes) {
print "No nodes to load. Exiting ...\n";
exit(0);
}
#
# Another shark hack. Well, perhaps not. We really don't want 50 nodes
# all rebooting at the same time, PCs *or* sharks. Lets order them
......
......@@ -184,6 +184,23 @@ else {
}
}
#
# VIRTNODE HACK: Virtual nodes are special. Do not reload!
#
my @temp = ();
foreach my $node ( @nodes ) {
if (TBIsNodeVirtual($node)) {
print "*** Skipping virtual node $node ...\n";
next;
}
push(@temp, $node);
}
@nodes = @temp;
if (! @nodes) {
print "No nodes to load. Exiting ...\n";
exit(0);
}
#
# Figure out who called us. Root and admin types can do whatever they
# want. Normal users can only change nodes in experiments in their
......
......@@ -130,6 +130,14 @@ while (my %row = $db_result->fetchhash()) {
my $type = $row{'type'};
my $bootpath = 0;
#
# VIRTNODE HACK: Virtual nodes are special. No setup.
#
if (TBIsNodeVirtual($node)) {
print "*** Skipping setup on virtual node $node ...\n";
next;
}
push(@nodes, $node);
$osids{$node} = $osid;
$reboots{$node} = 1;
......
......@@ -182,6 +182,23 @@ else {
}
}
#
# VIRTNODE HACK: Virtual nodes are special. Do not reload!
#
my @temp = ();
foreach my $node ( @nodes ) {
if (TBIsNodeVirtual($node)) {
print "*** Skipping virtual node $node ...\n";
next;
}
push(@temp, $node);
}
@nodes = @temp;
if (! @nodes) {
print "No nodes to load. Exiting ...\n";
exit(0);
}
#
# Root and admin types can do whatever they want.
# Mere users cannot schedule reloads.
......
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