failedNodes.put(nodeMeta, new Exception("Simulated failing node"));
LOG.info("{} - Node failing to start: {}", roles, nodeMeta.getId());
}
}
if (failedNodes.size() > 0) {
Image image = new ImageImpl("ec2", "test", "testId", location, new URI("http://node"),
userMetadata, new OperatingSystem(null, null, null, null, "op", true), "description",
null, null, loginCredentials);
Hardware hardware = new HardwareImpl("ec2", "test", "testId", location, new URI("http://node"),
userMetadata, new ArrayList<Processor>(), 1, new ArrayList<Volume>(), null);
Template template = new TemplateImpl(image, hardware, location, TemplateOptions.NONE);