Skip to content
GitLab
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
80dcaf1f
Commit
80dcaf1f
authored
Mar 12, 2014
by
Leigh B Stoller
Browse files
Watch for failure on Delete and reset the state back. We need to
deal with resource busy errors properly.
parent
f7983126
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/scripts/quickvm.in
View file @
80dcaf1f
...
...
@@ -625,6 +625,7 @@ sub Terminate($)
fatal
("
Could not sign speaksfor credential
")
if
(
$speaksfor_credential
->
Sign
(
$
GeniCredential::
LOCALSA_FLAG
));
my
$old_status
=
$instance
->
status
();
$instance
->
SetStatus
("
terminating
");
#
...
...
@@ -652,6 +653,7 @@ sub Terminate($)
if
(
!
defined
(
$response
)
||
(
$response
->
code
()
!=
GENIRESPONSE_SUCCESS
&&
$response
->
code
()
!=
GENIRESPONSE_SEARCHFAILED
))
{
$instance
->
SetStatus
(
$old_status
);
fatal
("
DeleteSlice failed:
"
.
(
defined
(
$response
)
?
$response
->
output
()
:
"")
.
"
\n
");
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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