Repository: cloudstack Updated Branches: refs/heads/master 94969b065 -> 32dc09f2c
even xenserverinvestigator returns true, that means host is up, but XAPI may not work Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/32dc09f2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/32dc09f2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/32dc09f2 Branch: refs/heads/master Commit: 32dc09f2c35b41fdc9c2c9434c2be66b0b343634 Parents: 94969b0 Author: Anthony Xu <[email protected]> Authored: Thu Oct 23 16:08:53 2014 -0700 Committer: Anthony Xu <[email protected]> Committed: Thu Oct 23 16:10:18 2014 -0700 ---------------------------------------------------------------------- server/src/com/cloud/ha/XenServerInvestigator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/32dc09f2/server/src/com/cloud/ha/XenServerInvestigator.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/ha/XenServerInvestigator.java b/server/src/com/cloud/ha/XenServerInvestigator.java index 8ea27dc..cce449c 100755 --- a/server/src/com/cloud/ha/XenServerInvestigator.java +++ b/server/src/com/cloud/ha/XenServerInvestigator.java @@ -68,7 +68,8 @@ public class XenServerInvestigator extends AdapterBase implements Investigator { s_logger.debug("Host " + neighbor + " couldn't determine the status of " + agent); continue; } - return ans.isAlive() ? Status.Up : Status.Down; + // even it returns true, that means host is up, but XAPI may not work + return ans.isAlive() ? null : Status.Down; } }
