mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 6414, 6513: do not send host alerts when conole proxy or ssvm goes down
status 6414, 6513: resolved fixed
This commit is contained in:
parent
c685c77d74
commit
7fcd0314d8
@ -1445,12 +1445,14 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory,
|
||||
String hostDesc = "name: " + host.getName() + " (id:"
|
||||
+ host.getId() + "), availability zone: "
|
||||
+ dcVO.getName() + ", pod: " + podVO.getName();
|
||||
_alertMgr.sendAlert(AlertManager.ALERT_TYPE_HOST,
|
||||
host.getDataCenterId(), host.getPodId(),
|
||||
"Host disconnected, " + hostDesc,
|
||||
"If the agent for host [" + hostDesc
|
||||
+ "] is not restarted within " + _alertWait
|
||||
+ " seconds, HA will begin on the VMs");
|
||||
if((host.getType() != Host.Type.SecondaryStorage) && (host.getType() != Host.Type.ConsoleProxy)){
|
||||
_alertMgr.sendAlert(AlertManager.ALERT_TYPE_HOST,
|
||||
host.getDataCenterId(), host.getPodId(),
|
||||
"Host disconnected, " + hostDesc,
|
||||
"If the agent for host [" + hostDesc
|
||||
+ "] is not restarted within " + _alertWait
|
||||
+ " seconds, HA will begin on the VMs");
|
||||
}
|
||||
event = Event.AgentDisconnected;
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user