SoftwareManager softManager =
softwareManagerCollector
.getSoftwareManagerByClusterName(clusterName);
SyncHostsUtils.SyncHosts(clusterSpec, hostnames, softManager);
ISoftwareManagementTask task = null;
if (!Constants.IRONFAN.equals(softManager.getName())) {
task =
createExternalTask(targetName, clusterName);
} else {
task = createThriftCommandTask(targetName);
}
try {
Map<String, Object> ret = task.call();
if (!(Boolean) ret.get("succeed")) {
String errorMessage = (String) ret.get("errorMessage");
throw BddException.UPGRADE(null, errorMessage);
}