stackUpdater.updateStackStatusReason(stack.getId(), stack.getStatus().name());
if (!cloudPlatform.isWithTemplate()) {
stackUpdater.updateStackStatus(stack.getId(), Status.REQUESTED);
Set<Resource> resourceSet = new HashSet<>();
ResourceBuilderInit resourceBuilderInit = resourceBuilderInits.get(cloudPlatform);
final ProvisionContextObject pCO =
resourceBuilderInit.provisionInit(stack, userDataBuilder.build(cloudPlatform, stack.getHash(), userDataParams));
for (ResourceBuilder resourceBuilder : networkResourceBuilders.get(cloudPlatform)) {
List<Resource> resourceList = resourceBuilder.create(pCO, 0, new ArrayList<Resource>());
resourceSet.addAll(resourceList);
pCO.getNetworkResources().addAll(resourceList);
}
List<Future<List<Resource>>> futures = new ArrayList<>();
for (int i = 0; i < stack.getNodeCount(); i++) {
final int index = i;
Future<List<Resource>> submit = resourceBuilderExecutor.submit(new Callable<List<Resource>>() {