cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sate...@apache.org
Subject git commit: updated refs/heads/4.2 to a3450af
Date Thu, 08 Aug 2013 09:01:19 GMT
Updated Branches:
  refs/heads/4.2 1076c267f -> a3450afff


CLOUDSTACK-4165 3.0.6 to ASF 4.2 Upgrade: Data Migration step of the Upgrade Fails on "persistLegacyZones"

Track the Datacenter of previous cluster correctly while going through each cluster in the
zone to see if 2 clusters are from different DC/vCenter.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a3450aff
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a3450aff
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a3450aff

Branch: refs/heads/4.2
Commit: a3450afff558d1d04a7dd4697f4d152f3a0aba33
Parents: 1076c26
Author: Sateesh Chodapuneedi <sateesh@apache.org>
Authored: Thu Aug 8 09:00:10 2013 +0530
Committer: Sateesh Chodapuneedi <sateesh@apache.org>
Committed: Thu Aug 8 09:00:10 2013 +0530

----------------------------------------------------------------------
 engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a3450aff/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
index 5a6c5b0..79576f2 100644
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
@@ -627,10 +627,10 @@ public class Upgrade410to420 implements DbUpgrade {
                             tokens = url.split("/"); // url format - http://vcenter/dc/cluster
                             vc = tokens[2];
                             dcName = tokens[3];
+                            dcOfPreviousCluster = dcOfCurrentCluster;
+                            dcOfCurrentCluster = dcName + "@" + vc;
                             if (count > 0) {
-                                dcOfPreviousCluster = dcOfCurrentCluster;
-                                dcOfCurrentCluster = dcName + "@" + vc;
-                                if (!dcOfPreviousCluster.equals(dcOfCurrentCluster)) {
+                                if (!dcOfPreviousCluster.equalsIgnoreCase(dcOfCurrentCluster))
{
                                     legacyZone = true;
                                     s_logger.debug("Marking the zone " + zoneId + " as legacy
zone.");
                                 }


Mime
View raw message