use of com.sequenceiq.freeipa.flow.freeipa.upscale.event.UpscaleFailureEvent in project cloudbreak by hortonworks.
the class CollectMetadataResultToUpscaleFailureEventConverter method convert.
@Override
public UpscaleFailureEvent convert(Object payload) {
CollectMetadataResult result = (CollectMetadataResult) payload;
UpscaleFailureEvent event = new UpscaleFailureEvent(result.getResourceId(), "Collecting metadata", Set.of(), Map.of(), new Exception("Payload failed: " + payload));
return event;
}
use of com.sequenceiq.freeipa.flow.freeipa.upscale.event.UpscaleFailureEvent in project cloudbreak by hortonworks.
the class HostMetadataSetupFailedToUpscaleFailureEventConverter method convert.
@Override
public UpscaleFailureEvent convert(Object payload) {
HostMetadataSetupFailed result = (HostMetadataSetupFailed) payload;
UpscaleFailureEvent event = new UpscaleFailureEvent(result.getResourceId(), "Host metadata setup", Set.of(), Map.of(), new Exception("Payload failed: " + payload));
return event;
}
use of com.sequenceiq.freeipa.flow.freeipa.upscale.event.UpscaleFailureEvent in project cloudbreak by hortonworks.
the class InstallFreeIpaServicesFailedToUpscaleFailureEventConverter method convert.
@Override
public UpscaleFailureEvent convert(Object payload) {
InstallFreeIpaServicesFailed result = (InstallFreeIpaServicesFailed) payload;
UpscaleFailureEvent event = new UpscaleFailureEvent(result.getResourceId(), "Installing FreeIPA services", Set.of(), Map.of(), new Exception("Payload failed: " + payload));
return event;
}
use of com.sequenceiq.freeipa.flow.freeipa.upscale.event.UpscaleFailureEvent in project cloudbreak by hortonworks.
the class UpscaleStackResultToUpscaleFailureEventConverter method convert.
@Override
public UpscaleFailureEvent convert(Object payload) {
UpscaleStackResult result = (UpscaleStackResult) payload;
UpscaleFailureEvent event = new UpscaleFailureEvent(result.getResourceId(), "Adding instances", Set.of(), Map.of(), new Exception("Payload failed: " + payload));
return event;
}
use of com.sequenceiq.freeipa.flow.freeipa.upscale.event.UpscaleFailureEvent in project cloudbreak by hortonworks.
the class ValidateInstancesHealthHandler method handleUnhealthyInstancesPresent.
private UpscaleFailureEvent handleUnhealthyInstancesPresent(HandlerEvent<ValidateInstancesHealthEvent> event, List<NodeHealthDetails> healthDetails, List<NodeHealthDetails> notHealthyNodes) {
LOGGER.warn("Non healthy instances found: {}", notHealthyNodes);
Set<String> healthyInstances = collectHealthyInstanceIds(healthDetails);
Map<String, String> failureDetails = constructFailureDetails(notHealthyNodes);
Exception exceptionForFailureEvent = new Exception("Unhealthy instances found: " + failureDetails.keySet());
return new UpscaleFailureEvent(event.getData().getResourceId(), PHASE, healthyInstances, failureDetails, exceptionForFailureEvent);
}
Aggregations