Stack stack = stackUpdater.updateAmbariIp(stackId, ambariIp);
MDCBuilder.buildMdcContext(stack);
LOGGER.info("Accepted {} event.", ReactorConfig.STACK_CREATE_SUCCESS_EVENT, stackId);
stack = stackUpdater.updateStackStatus(stackId, Status.AVAILABLE);
websocketService.sendToTopicUser(stack.getOwner(), WebsocketEndPoint.STACK,
new StatusMessage(stackId, stack.getName(), Status.AVAILABLE.name()));
stackUpdater.updateStackStatusReason(stack.getId(), "");
LOGGER.info("Publishing {} event.", ReactorConfig.AMBARI_STARTED_EVENT);
reactor.notify(ReactorConfig.AMBARI_STARTED_EVENT, Event.wrap(stack));
}