use of com.sequenceiq.freeipa.flow.stack.termination.TerminationFailedException in project cloudbreak by hortonworks.
the class TerminationService method requestDeletion.
public void requestDeletion(Long stackId, List<String> instanceIds) {
try {
transactionService.required(() -> {
Stack stack = stackService.getByIdWithListsInTransaction(stackId);
requestDeletionForInstances(stack, instanceIds);
});
} catch (TransactionExecutionException ex) {
LOGGER.info("Failed to request deletion for cluster infrastructure.");
throw new TerminationFailedException(ex);
}
}
use of com.sequenceiq.freeipa.flow.stack.termination.TerminationFailedException in project cloudbreak by hortonworks.
the class TerminationService method finalizeTermination.
public void finalizeTermination(Long stackId, List<String> instanceIds) {
try {
transactionService.required(() -> {
Stack stack = stackService.getByIdWithListsInTransaction(stackId);
terminateMetaDataInstances(stack, instanceIds);
});
} catch (TransactionExecutionException ex) {
LOGGER.info("Failed to terminate cluster infrastructure.");
throw new TerminationFailedException(ex);
}
}
Aggregations