From 32dc09f2c35b41fdc9c2c9434c2be66b0b343634 Mon Sep 17 00:00:00 2001 From: Anthony Xu Date: Thu, 23 Oct 2014 16:08:53 -0700 Subject: [PATCH] even xenserverinvestigator returns true, that means host is up, but XAPI may not work --- server/src/com/cloud/ha/XenServerInvestigator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/com/cloud/ha/XenServerInvestigator.java b/server/src/com/cloud/ha/XenServerInvestigator.java index 8ea27dc388f..cce449cc768 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; } }