CLOUDSTACK-1396: uuid field is NULL in hypervisore_capability table for Vmware 
ESXI 5.1
Adding uuid at the time of inserting new entry in hypervisor_capabilities table


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

Branch: refs/heads/ui-vpc-redesign
Commit: 4e7f87681c8ac15aee56e39693d7a328ccf97f7f
Parents: 4fdd026
Author: Koushik Das <[email protected]>
Authored: Thu May 23 16:07:26 2013 +0530
Committer: Koushik Das <[email protected]>
Committed: Thu May 23 16:07:26 2013 +0530

----------------------------------------------------------------------
 setup/db/db/schema-410to420.sql |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4e7f8768/setup/db/db/schema-410to420.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql
index 7b5e9cb..ea7a18d 100644
--- a/setup/db/db/schema-410to420.sql
+++ b/setup/db/db/schema-410to420.sql
@@ -25,8 +25,8 @@ SET foreign_key_checks = 0;
 ALTER TABLE `cloud`.`hypervisor_capabilities` ADD COLUMN 
`max_hosts_per_cluster` int unsigned DEFAULT NULL COMMENT 'Max. hosts in 
cluster supported by hypervisor';
 ALTER TABLE `cloud`.`hypervisor_capabilities` ADD COLUMN 
`storage_motion_supported` int(1) unsigned DEFAULT 0 COMMENT 'Is storage motion 
supported';
 UPDATE `cloud`.`hypervisor_capabilities` SET `max_hosts_per_cluster`=32 WHERE 
`hypervisor_type`='VMware';
-INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(hypervisor_type, 
hypervisor_version, max_guests_limit, security_group_enabled, 
max_data_volumes_limit, storage_motion_supported) VALUES ('XenServer', '6.1.0', 
50, 1, 13, 1);
-INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(hypervisor_type, 
hypervisor_version, max_guests_limit, security_group_enabled, 
max_hosts_per_cluster) VALUES ('VMware', '5.1', 128, 0, 32);
+INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, 
hypervisor_version, max_guests_limit, security_group_enabled, 
max_data_volumes_limit, storage_motion_supported) VALUES (UUID(), 'XenServer', 
'6.1.0', 50, 1, 13, 1);
+INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, 
hypervisor_version, max_guests_limit, security_group_enabled, 
max_hosts_per_cluster) VALUES (UUID(), 'VMware', '5.1', 128, 0, 32);
 DELETE FROM `cloud`.`configuration` where name='vmware.percluster.host.max';
 INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 
'AgentManager', 'xen.nics.max', '7', 'Maximum allowed nics for Vms created on 
Xen');
 INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Network', 'DEFAULT', 
'management-server', 'midonet.apiserver.address', 'http://localhost:8081', 
'Specify the address at which the Midonet API server can be contacted (if using 
Midonet)');
@@ -348,7 +348,7 @@ ALTER TABLE `cloud`.`remote_access_vpn` ADD COLUMN `uuid` 
varchar(40) UNIQUE;
 
 -- START: support for LXC
  
-INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(hypervisor_type, 
hypervisor_version, max_guests_limit, security_group_enabled) VALUES ('LXC', 
'default', 50, 1);
+INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, 
hypervisor_version, max_guests_limit, security_group_enabled) VALUES (UUID(), 
'LXC', 'default', 50, 1);
 ALTER TABLE `cloud`.`physical_network_traffic_types` ADD COLUMN 
`lxc_network_label` varchar(255) DEFAULT 'cloudbr0' COMMENT 'The network name 
label of the physical device dedicated to this traffic on a LXC host';
  
 UPDATE configuration SET value='KVM,XenServer,VMware,BareMetal,Ovm,LXC' WHERE 
name='hypervisor.list';

Reply via email to