cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [35/50] [abbrv] git commit: updated refs/heads/planner_reserve to 9b86516
Date Sun, 05 May 2013 08:00:00 GMT
CLOUDSTACK-1849 Creation of LB Health Check policy fails if the value of Unhealthy Threshold
parameter is 3 or more.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c8e3fff6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c8e3fff6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c8e3fff6

Branch: refs/heads/planner_reserve
Commit: c8e3fff6e43954bdd0c33aabcd0c17fa3799c4f3
Parents: 38b4f84
Author: Rajesh Battala <rajesh.battala@citrix.com>
Authored: Wed Apr 17 17:16:56 2013 +0530
Committer: Sateesh Chodapuneedi <sateesh@apache.org>
Committed: Fri May 3 17:00:48 2013 +0530

----------------------------------------------------------------------
 .../cloud/network/resource/NetscalerResource.java  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c8e3fff6/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
----------------------------------------------------------------------
diff --git a/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
b/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
index 563cbd4..98e1461 100644
--- a/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
+++ b/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
@@ -2297,6 +2297,7 @@ public class NetscalerResource implements ServerResource {
                 }
 
                 csMon.set_interval(hcp.getHealthcheckInterval());
+                csMon.set_retries(Math.max(hcp.getHealthcheckThresshold(), hcp.getUnhealthThresshold())
+ 1);
                 csMon.set_resptimeout(hcp.getResponseTime());
                 csMon.set_failureretries(hcp.getUnhealthThresshold());
                 csMon.set_successretries(hcp.getHealthcheckThresshold());


Mime
View raw message