mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
call setIptable before launch heartbeat
This commit is contained in:
parent
8d1f650a9e
commit
b85ecec646
@ -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) {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user