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:07:21 UTC

git commit: updated refs/heads/4.4 to ef35ae7

Repository: cloudstack
Updated Branches:
  refs/heads/4.4 f0cc5c510 -> ef35ae727


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/ef35ae72
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ef35ae72
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ef35ae72

Branch: refs/heads/4.4
Commit: ef35ae727d8298d2cea7890c60c2b47d376a9ea2
Parents: f0cc5c5
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:06:44 2015 +0200

----------------------------------------------------------------------
 .../network/router/VirtualNetworkApplianceManagerImpl.java   | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ef35ae72/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 4400a62..fce1ad4 100755
--- a/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
+++ b/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
@@ -4406,7 +4406,15 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
             (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;
     }