failedNodes.put(nodeMeta, new Exception("Simulated failing node"));
LOG.info("{} - Node failing to start: {}", roles, nodeMeta.getId());
}
}
if (failedNodes.size() > 0) {
Image image = new ImageBuilder().providerId("ec2").name("test").id("testId").location(location)
.uri(URI.create("http://node")).operatingSystem(OperatingSystem.builder().description("op").build())
.description("description").status(Image.Status.AVAILABLE).defaultCredentials(loginCredentials).build();
Hardware hardware = new HardwareBuilder().providerId("ec2").name("test").id("testId").location(location)
.uri(URI.create("http://node")).ram(1).hypervisor("xen").build();
Template template = new TemplateImpl(image, hardware, location, TemplateOptions.NONE);