Search in sources :

Example 1 with TlsConfigurationException

use of com.sequenceiq.periscope.service.security.TlsConfigurationException in project cloudbreak by hortonworks.

the class ClusterCreationEvaluator method run.

@Override
public void run() {
    AutoscaleStackResponse stack = context.getStack();
    Optional<Cluster> clusterOptional = context.getClusterOptional();
    try {
        createOrUpdateCluster(stack, clusterOptional);
    } catch (AmbariHealtCheckException ahf) {
        LOGGER.warn(String.format("Ambari health check failed for Cloudbreak stack: %s(ID:%s)", stack.getStackId(), stack.getName()), ahf);
    } catch (TlsConfigurationException ex) {
        LOGGER.warn(String.format("Could not prepare TLS configuration for Cloudbreak stack: %s(ID:%s)", stack.getStackId(), stack.getName()), ex);
    } catch (Exception ex) {
        LOGGER.warn(String.format("Could not create cluster for Cloudbreak stack: %s(ID:%s)", stack.getStackId(), stack.getName()), ex);
    }
}
Also used : TlsConfigurationException(com.sequenceiq.periscope.service.security.TlsConfigurationException) AutoscaleStackResponse(com.sequenceiq.cloudbreak.api.model.AutoscaleStackResponse) Cluster(com.sequenceiq.periscope.domain.Cluster) TlsConfigurationException(com.sequenceiq.periscope.service.security.TlsConfigurationException)

Aggregations

AutoscaleStackResponse (com.sequenceiq.cloudbreak.api.model.AutoscaleStackResponse)1 Cluster (com.sequenceiq.periscope.domain.Cluster)1 TlsConfigurationException (com.sequenceiq.periscope.service.security.TlsConfigurationException)1