cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yas...@apache.org
Subject [4/4] git commit: updated refs/heads/baremetal-4.2 to f6d71c5
Date Wed, 19 Jun 2013 00:06:07 GMT
Baremetal: DB upgrade


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

Branch: refs/heads/baremetal-4.2
Commit: f6d71c5062adf8ff9609a5b7f09a27a03c75ae3a
Parents: 192523f
Author: Sheng Yang <sheng.yang@citrix.com>
Authored: Tue Jun 18 15:52:40 2013 -0700
Committer: Sheng Yang <sheng.yang@citrix.com>
Committed: Tue Jun 18 15:52:40 2013 -0700

----------------------------------------------------------------------
 server/src/com/cloud/configuration/Config.java |  2 +-
 setup/db/db/schema-410to420.sql                | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f6d71c50/server/src/com/cloud/configuration/Config.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/configuration/Config.java b/server/src/com/cloud/configuration/Config.java
index f6fa974..00bf2eb 100755
--- a/server/src/com/cloud/configuration/Config.java
+++ b/server/src/com/cloud/configuration/Config.java
@@ -406,7 +406,7 @@ public enum Config {
 	NetworkIPv6SearchRetryMax("Network", ManagementServer.class, Integer.class, "network.ipv6.search.retry.max",
"10000", "The maximum number of retrying times to search for an available IPv6 address in
the table", null),
 
 	ExternalBaremetalSystemUrl("Advanced", ManagementServer.class, String.class, "external.baremetal.system.url",
null, "url of external baremetal system that CloudStack will talk to", null),
-	ExternalBaremetalResourceClassName("Advanced", ManagementServer.class, String.class, "external,baremetal.resource.classname",
null, "class name for handling external baremetal resource", null),
+	ExternalBaremetalResourceClassName("Advanced", ManagementServer.class, String.class, "external.baremetal.resource.classname",
null, "class name for handling external baremetal resource", null),
 	EnableBaremetalSecurityGroupAgentEcho("Advanced", ManagementServer.class, Boolean.class,
"enable.baremetal.securitygroup.agent.echo", "false", "After starting provision process, periodcially
echo security agent installed in the template. Treat provisioning as success only if echo
successfully", null),
 	IntervalToEchoBaremetalSecurityGroupAgent("Advanced", ManagementServer.class, Integer.class,
"interval.baremetal.securitygroup.agent.echo", "10", "Interval to echo baremetal security
group agent, in seconds", null),
 	TimeoutToEchoBaremetalSecurityGroupAgent("Advanced", ManagementServer.class, Integer.class,
"timeout.baremetal.securitygroup.agent.echo", "3600", "Timeout to echo baremetal security
group agent, in seconds, the provisioning process will be treated as a failure", null),

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f6d71c50/setup/db/db/schema-410to420.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql
index bcdf2d9..4ff3949 100644
--- a/setup/db/db/schema-410to420.sql
+++ b/setup/db/db/schema-410to420.sql
@@ -1884,3 +1884,19 @@ UPDATE `cloud`.`networks` set name='Shared SG enabled network', display_text='Sh
 
 INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server',
'use.system.public.ips', 'true', 'If true, when account has dedicated public ip range(s),
once the ips dedicated to the account have been consumed ips will be acquired from the system
pool');
 INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server',
'use.system.guest.vlans', 'true', 'If true, when account has dedicated guest vlan range(s),
once the vlans dedicated to the account have been consumed vlans will be allocated from the
system pool');
+
+INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server',
'external.baremetal.system.url', null, 'url of external baremetal system that CloudStack will
talk to');
+INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server',
'external.baremetal.resource.classname', null, 'class name for handling external baremetal
resource');
+INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server',
'enable.baremetal.securitygroup.agent.echo', 'false', 'After starting provision process, periodcially
echo security agent installed in the template. Treat provisioning as success only if echo
successfully');
+INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server',
'interval.baremetal.securitygroup.agent.echo', 10, 'Interval to echo baremetal security group
agent, in seconds');
+INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server',
'timeout.baremetal.securitygroup.agent.echo', 3600, 'Timeout to echo baremetal security group
agent, in seconds, the provisioning process will be treated as a failure');
+
+ALTER TABLE `cloud`.`baremetal_dhcp_devices` ADD CONSTRAINT `fk_external_dhcp_devices_nsp_id`
FOREIGN KEY (`nsp_id`) REFERENCES `physical_network_service_providers` (`id`) ON DELETE CASCADE;
+ALTER TABLE `cloud`.`baremetal_dhcp_devices` ADD CONSTRAINT `fk_external_dhcp_devices_host_id`
FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE;
+ALTER TABLE `cloud`.`baremetal_dhcp_devices` ADD CONSTRAINT `fk_external_dhcp_devices_pod_id`
FOREIGN KEY (`pod_id`) REFERENCES `host_pod_ref`(`id`) ON DELETE CASCADE;
+ALTER TABLE `cloud`.`baremetal_dhcp_devices` ADD CONSTRAINT `fk_external_dhcp_devices_physical_network_id`
FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE;
+
+ALTER TABLE `cloud`.`baremetal_pxe_devices` ADD CONSTRAINT `fk_external_pxe_devices_nsp_id`
FOREIGN KEY (`nsp_id`) REFERENCES `physical_network_service_providers` (`id`) ON DELETE CASCADE;
+ALTER TABLE `cloud`.`baremetal_pxe_devices` ADD CONSTRAINT `fk_external_pxe_devices_host_id`
FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE;
+ALTER TABLE `cloud`.`baremetal_pxe_devices` ADD CONSTRAINT `fk_external_pxe_devices_physical_network_id`
FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE;
+


Mime
View raw message