Commit df13858a authored by Leigh B Stoller's avatar Leigh B Stoller

Store the sliverstatus results into the webtask so the web interface

can make use of it (to tell users what nodes are up/down).
parent 9e2142b2
......@@ -629,7 +629,8 @@ my $blob = {'uuid' => $quickvm_uuid,
'creator_uuid' => $geniuser->uuid(),
'aggregate_urn'=> $CMURN,
'status' => "created",
'servername' => $SERVER_NAME
'servername' => $SERVER_NAME,
'rspec' => $rspecstr,
};
if (defined($project)) {
$blob->{"pid"} = $project->pid();
......@@ -761,6 +762,19 @@ while ($seconds > 0) {
if ($response->code() == GENIRESPONSE_BUSY);
my $blob = $response->value();
#
# Convert to something smaller, with info the web interface
# cares about.
#
if (defined($webtask)) {
my $statusblob = {};
foreach my $urn (keys(%{$blob->{'details'}})) {
my $details = $blob->{'details'}->{$urn};
my $node_id = $details->{'client_id'};
$statusblob->{$node_id} = $details;
}
$webtask->sliverstatus($statusblob)
}
if (exists($blob->{'public_url'})) {
$public_url = $blob->{'public_url'};
}
......
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