only ping timeout trigger host HA, otherwise there may be two threads try to HA the same VM

This commit is contained in:
Anthony Xu 2014-03-05 16:48:40 -08:00
parent 830328b63d
commit 370554e9d9

View File

@ -34,7 +34,6 @@ import com.cloud.agent.transport.Request;
import com.cloud.agent.transport.Response;
import com.cloud.exception.AgentUnavailableException;
import com.cloud.host.Status;
import com.cloud.host.Status.Event;
import com.cloud.resource.ServerResource;
public class DirectAgentAttache extends AgentAttache {
@ -145,7 +144,6 @@ public class DirectAgentAttache extends AgentAttache {
PingCommand cmd = resource.getCurrentStatus(_id);
if (cmd == null) {
s_logger.warn("Unable to get current status on " + _id + "(" + _name + ")");
_mgr.disconnectWithInvestigation(DirectAgentAttache.this, Event.AgentDisconnected);
return;
}
if (s_logger.isDebugEnabled()) {