You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2015/06/18 08:05:01 UTC
git commit: updated refs/heads/4.5 to 85e2d96
Repository: cloudstack
Updated Branches:
refs/heads/4.5 88fb8431f -> 85e2d9611
CLOUDSTACK-8545 alert when out of band migration is detected and not
acted upon
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/85e2d961
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/85e2d961
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/85e2d961
Branch: refs/heads/4.5
Commit: 85e2d9611f90d00e0d61b2cfd6a1779d400eb60b
Parents: 88fb843
Author: Daan Hoogland <da...@gmail.com>
Authored: Thu Jun 18 08:04:50 2015 +0200
Committer: Daan Hoogland <da...@gmail.com>
Committed: Thu Jun 18 08:04:50 2015 +0200
----------------------------------------------------------------------
.../network/router/VirtualNetworkApplianceManagerImpl.java | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/85e2d961/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java b/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
index 698f94d..e0d1edb 100755
--- a/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
+++ b/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
@@ -4480,7 +4480,15 @@ VirtualMachineGuru, Listener, Configurable, StateListener<State, VirtualMachine.
(newState == State.Running)) {
s_logger.info("Schedule a router reboot task as router " + vo.getId() + " is powered-on out-of-band. we need to reboot to refresh network rules");
_executor.schedule(new RebootTask(vo.getId()), 1000, TimeUnit.MICROSECONDS);
+ } else {
+ if (isOutOfBandMigrated(opaque)) {
+ final String title = "Router has been migrated out of band: " + vo.getInstanceName();
+ final String context =
+ "An out of band migration of router " + vo.getInstanceName() + "(" + vo.getUuid() + ") was detected. No automated action was performed.";
+ _alertMgr.sendAlert(AlertManager.AlertType.ALERT_TYPE_DOMAIN_ROUTER, vo.getDataCenterId(), vo.getPodIdToDeployIn(), title, context);
+ }
}
+
return true;
}