You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2013/07/31 22:34:03 UTC

git commit: updated refs/heads/4.2 to f09df4c

Updated Branches:
  refs/heads/4.2 0014381f3 -> f09df4c13


CLOUDSTACK-3974: 410-420 db upgrade - exclude is_inline field from the query when insert the entry for the F5 load balancer as this field was dropped as a part of 40-41 upgrade


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

Branch: refs/heads/4.2
Commit: f09df4c13682c1626fa9fa545df9e0f3c0a48320
Parents: 0014381
Author: Alena Prokharchyk <al...@citrix.com>
Authored: Wed Jul 31 13:32:28 2013 -0700
Committer: Alena Prokharchyk <al...@citrix.com>
Committed: Wed Jul 31 13:32:28 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f09df4c1/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 8960c91..bfd8a60 100644
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
@@ -1413,7 +1413,7 @@ public class Upgrade410to420 implements DbUpgrade {
         try{
             s_logger.debug("Adding F5 Big IP load balancer with host id " + hostId + " in to physical network" + physicalNetworkId);
             String insertF5 = "INSERT INTO `cloud`.`external_load_balancer_devices` (physical_network_id, host_id, provider_name, " +
-                    "device_name, capacity, is_dedicated, device_state, allocation_state, is_inline, is_managed, uuid) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
+                    "device_name, capacity, is_dedicated, device_state, allocation_state, is_managed, uuid) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
             pstmtUpdate = conn.prepareStatement(insertF5);
             pstmtUpdate.setLong(1, physicalNetworkId);
             pstmtUpdate.setLong(2, hostId);
@@ -1424,8 +1424,7 @@ public class Upgrade410to420 implements DbUpgrade {
             pstmtUpdate.setString(7, "Enabled");
             pstmtUpdate.setString(8, "Shared");
             pstmtUpdate.setBoolean(9, false);
-            pstmtUpdate.setBoolean(10, false);
-            pstmtUpdate.setString(11, UUID.randomUUID().toString());
+            pstmtUpdate.setString(10, UUID.randomUUID().toString());
             pstmtUpdate.executeUpdate();
         }catch (SQLException e) {
             throw new CloudRuntimeException("Exception while adding F5 load balancer device" ,  e);