". Cause: Iaas Provider is null for Provider: " + provider;
log.error(msg);
throw new InvalidPartitionException(msg);
}
Iaas iaas = iaasProvider.getIaas();
if (iaas == null) {
try {
iaas = CloudControllerUtil.getIaas(iaasProvider);
} catch (InvalidIaasProviderException e) {
String msg =
"Invalid Partition - " + partition.toString() +
". Cause: Unable to build Iaas of this IaasProvider [Provider] : " + provider+". "+e.getMessage();
log.error(msg, e);
throw new InvalidPartitionException(msg, e);
}
}
PartitionValidator validator = iaas.getPartitionValidator();
validator.setIaasProvider(iaasProvider);
IaasProvider updatedIaasProvider =
validator.validate(partition.getId(),
CloudControllerUtil.toJavaUtilProperties(partition.getProperties()));