Commit 3c816ec0 authored by Leigh B Stoller's avatar Leigh B Stoller

Noticed that we were getting a lot requests to the SA to register

slivers from the other clusters that were failing. Turns out to be a
bug that has been around a while, now fixed.
parent e397b0cd
......@@ -6780,9 +6780,16 @@ sub RegisterAux($$)
print STDERR "Could not find creator for $slice\n";
return -1;
}
my $creator_urn;
if ($creator->IsLocal()) {
$creator_urn = $creator->nonlocalurn();
}
else {
$creator_urn = $creator->urn();
}
my $blob = {
"urn" => $aggregate->urn(),
"creator_urn" => $creator->urn(),
"creator_urn" => $creator_urn,
"created" => $slice->created(),
"expires" => $slice->expires(),
"manifest" => $aggregate->GetManifest(1),
......
......@@ -864,6 +864,12 @@ sub urn($)
return $self->emulab_user()->urn();
}
sub nonlocalurn($)
{
my ($self) = @_;
return $self->emulab_user()->nonlocalurn();
}
#
# Get the key bundle for a local user, which are just sshkeys.
......
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