CLOUDSTACK-5938 Failing add host in security group enabled zone, when CSP is not installed

This commit is contained in:
Jayapal 2014-01-23 16:33:37 +05:30
parent f999a01837
commit 4b3784a98e

View File

@ -4986,6 +4986,13 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
if (_securityGroupEnabled) {
_canBridgeFirewall = can_bridge_firewall(conn);
if (!_canBridgeFirewall) {
String msg = "Failed to configure brige firewall";
s_logger.warn(msg);
s_logger.warn("Check host " + _host.ip +" for CSP is installed or not and check network mode for bridge");
return new SetupAnswer(cmd, msg);
}
}
String result = callHostPluginPremium(conn, "heartbeat", "host", _host.uuid, "interval", Integer.toString(_heartbeatInterval));