use of com.sequenceiq.freeipa.flow.freeipa.provision.event.postinstall.PostInstallFreeIpaFailed in project cloudbreak by hortonworks.
the class PostInstallFreeIpaHandler method accept.
@Override
public void accept(Event<PostInstallFreeIpaRequest> event) {
PostInstallFreeIpaRequest request = event.getData();
Selectable response;
try {
freeIpaPostInstallService.postInstallFreeIpa(request.getResourceId(), request.isFullPostInstall());
response = new PostInstallFreeIpaSuccess(request.getResourceId());
} catch (Exception e) {
LOGGER.error("Post install tasks have failed", e);
response = new PostInstallFreeIpaFailed(request.getResourceId(), e);
}
eventBus.notify(response.selector(), new Event<>(event.getHeaders(), response));
}
use of com.sequenceiq.freeipa.flow.freeipa.provision.event.postinstall.PostInstallFreeIpaFailed in project cloudbreak by hortonworks.
the class PostInstallFreeIpaFailedToUpscaleFailureEventConverter method convert.
@Override
public UpscaleFailureEvent convert(Object payload) {
PostInstallFreeIpaFailed result = (PostInstallFreeIpaFailed) payload;
UpscaleFailureEvent event = new UpscaleFailureEvent(result.getResourceId(), "Post installing FreeIPA", Set.of(), Map.of(), new Exception("Payload failed: " + payload));
return event;
}
Aggregations