Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions server/src/com/cloud/ha/AbstractInvestigatorImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected Status testIpAddress(Long hostId, String testHostIp) {
if (s_logger.isDebugEnabled()) {
s_logger.debug("host (" + testHostIp + ") returns null answer");
}
return null;
return Status.Alert;
}

if (pingTestAnswer.getResult()) {
Expand All @@ -103,14 +103,20 @@ protected Status testIpAddress(Long hostId, String testHostIp) {
return Status.Up;
} else {
if (s_logger.isDebugEnabled()) {
s_logger.debug("host (" + testHostIp + ") cannot be pinged, returning null ('I don't know')");
s_logger.debug("host (" + testHostIp + ") cannot be pinged, returning Alert state");
}
return null;
return Status.Alert;
}
} catch (AgentUnavailableException e) {
return null;
if (s_logger.isDebugEnabled()) {
s_logger.debug("host (" + testHostIp + "): " + e.getLocalizedMessage() + ", returning Disconnected state");
}
return Status.Disconnected;
} catch (OperationTimedoutException e) {
return null;
if (s_logger.isDebugEnabled()) {
s_logger.debug("host (" + testHostIp + "): " + e.getLocalizedMessage() + ", returning Alert state");
}
return Status.Alert;
}
}
}