Updated Branches:
  refs/heads/4-2-advanced-zone-security-group e6863c612 -> b0a9adeff


Advance SG enabled zone. Moved following db upgrade change from 40-41 to 41-42 
db upgrade path:
Adnvace Zone with SG enabled: DB upgrade for Advance SG enabled zone - setup 
name/displayText for Guest Shared SG enabled network (it used to be system 
network, and name was never set for it in 2.2.x)


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

Branch: refs/heads/4-2-advanced-zone-security-group
Commit: b0a9adeffee823eca0bf39427ddee71bd4a5fe24
Parents: e6863c6
Author: Alena Prokharchyk <alena.prokharc...@citrix.com>
Authored: Tue May 28 10:51:12 2013 -0700
Committer: Alena Prokharchyk <alena.prokharc...@citrix.com>
Committed: Tue May 28 10:51:12 2013 -0700

----------------------------------------------------------------------
 setup/db/db/schema-40to410.sql  |    4 ----
 setup/db/db/schema-410to420.sql |    5 +++++
 2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b0a9adef/setup/db/db/schema-40to410.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-40to410.sql b/setup/db/db/schema-40to410.sql
index b4c30ae..b7b1c7a 100644
--- a/setup/db/db/schema-40to410.sql
+++ b/setup/db/db/schema-40to410.sql
@@ -1639,7 +1639,3 @@ INSERT IGNORE INTO `cloud`.`configuration` VALUES 
('Usage', 'DEFAULT', 'manageme
 
 INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) 
VALUES (163, UUID(), 10, 'Ubuntu 12.04 (32-bit)');
 INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) 
VALUES (164, UUID(), 10, 'Ubuntu 12.04 (64-bit)');
-
-#update shared sg enabled network with not null name in Advance Security Group 
enabled network
-UPDATE `cloud`.`networks` set name='Shared SG enabled network', 
display_text='Shared SG enabled network' WHERE name IS null AND 
traffic_type='Guest' AND data_center_id IN (select id from data_center where 
networktype='Advanced' and is_security_group_enabled=1) AND acl_type='Domain';
-

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b0a9adef/setup/db/db/schema-410to420.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql
index 334aae7..f25588a 100644
--- a/setup/db/db/schema-410to420.sql
+++ b/setup/db/db/schema-410to420.sql
@@ -1605,3 +1605,8 @@ CREATE  TABLE `cloud`.`nic_ip_alias` (
 
 alter table `cloud`.`vpc_gateways` add column network_acl_id bigint unsigned 
default 1 NOT NULL;
 update `cloud`.`vpc_gateways` set network_acl_id = 2;
+
+
+#update shared sg enabled network with not null name in Advance Security Group 
enabled network
+UPDATE `cloud`.`networks` set name='Shared SG enabled network', 
display_text='Shared SG enabled network' WHERE name IS null AND 
traffic_type='Guest' AND data_center_id IN (select id from data_center where 
networktype='Advanced' and is_security_group_enabled=1) AND acl_type='Domain';
+

Reply via email to