Commit 1c7f1563 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Bug fix to avoid nodes that do not report status. This was causing the

kludgy code in template_exprun that tries to ignore dead nodes during
start and stop run.
parent be1e36a0
......@@ -1440,7 +1440,7 @@ sub NodeStatusList($$)
my $eid = $self->eid();
my $query_result =
DBQueryWarn("select n.node_id,n.status from reserved as r ".
DBQueryWarn("select r.node_id,n.status from reserved as r ".
"left join node_status as n on n.node_id=r.node_id ".
"where pid='$pid' and eid='$eid'");
......@@ -1448,6 +1448,10 @@ sub NodeStatusList($$)
if (!defined($query_result));
while (my ($node_id,$status) = $query_result->fetchrow_array()) {
# Skip nodes with no status info reported.
if (!defined($status) || $status eq "");
$results{$node_id} = (($status eq "up") ? 1 : 0);
%$prval = %results;
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