Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
19b7de04
Commit
19b7de04
authored
Sep 08, 2014
by
Leigh B Stoller
Browse files
Do not leave slice locked on failure, since use cannot then delete it.
parent
c147dcf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/scripts/quickvm.in
View file @
19b7de04
...
...
@@ -642,7 +642,6 @@ while ($seconds > 0) {
}
elsif
(
$blob
->
{'
status
'}
eq
"
failed
")
{
$failed
=
1
;
$instance
->
SetStatus
("
failed
");
last
;
}
}
...
...
@@ -652,15 +651,19 @@ print STDERR "$public_url\n"
print
STDERR
"
\n
";
print
STDERR
"
$manifest
\n\n
";
if
(
$failed
)
{
fatal
("
$slice_urn
failed.
");
}
elsif
(
!
$ready
)
{
if
(
$failed
||
!
$ready
)
{
$instance
->
SetStatus
("
failed
");
fatal
("
$slice_urn
timed out.
");
if
(
!
$ready
)
{
print
STDERR
"
$slice_urn
timed out.
\n
";
}
else
{
print
STDERR
"
$slice_urn
failed.
\n
";
}
}
else
{
$instance
->
SetStatus
("
ready
");
}
$slice
->
UnLock
();
$instance
->
SetStatus
("
ready
");
exit
(
0
);
sub
fatal
($)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment