throw BddException.INVALID_PARAMETER("distro", cluster.getDistro());
}
// only check roles validity in server side, but not in CLI and GUI, because roles info exist in server side.
ClusterBlueprint blueprint = cluster.toBlueprint();
try {
softwareManager.validateBlueprint(cluster.toBlueprint());
cluster.validateClusterCreate(failedMsgList, warningMsgList);
} catch (ValidationException e) {
failedMsgList.addAll(e.getFailedMsgList());
warningMsgList.addAll(e.getWarningMsgList());
}