Commit 80dcaf1f authored by Leigh B Stoller's avatar 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
......@@ -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");
}
......
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