call setIptable before launch heartbeat

This commit is contained in:
anthony 2011-02-16 17:16:19 -08:00
parent 8d1f650a9e
commit b85ecec646
2 changed files with 6 additions and 7 deletions

View File

@ -3824,11 +3824,6 @@ public abstract class CitrixResourceBase implements ServerResource {
} finally {
sshConnection.close();
}
if (!setIptables(conn)) {
s_logger.warn("set xenserver Iptable failed");
}
hr.tags.add("vmops-version-" + version);
host.setTags(conn, hr.tags);
} catch (XenAPIException e) {

View File

@ -584,13 +584,17 @@ public class XenServer56Resource extends CitrixResourceBase {
throw new CloudRuntimeException("Unable to remove heartbeat tag", e);
}
if (!setIptables(conn)) {
s_logger.warn("set xenserver Iptable failed");
return null;
}
String result = callHostPluginPremium(conn, "heartbeat", "host", _host.uuid, "interval", Integer
.toString(_heartbeatInterval));
if (result == null || !result.contains("> DONE <")) {
s_logger.warn("Unable to launch the heartbeat process on " + _host.ip);
return null;
}
return cmds;
}