Skip to content

Commit cd278cf

Browse files
committed
CLOUDSTACK-4079: Made a change to make sure we are setting the hypervisor capabilities for storage motion to true.
If an upgrade is taking place from an older setup which supported a hypervisor but not storage motion on that hypervisor, the upgraded setup will not have the storage motion field enabled. Enabled it explicitly.
1 parent 40e7502 commit cd278cf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎setup/db/db/schema-410to420.sql‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, hype
3737
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);
3838
UPDATE `cloud`.`hypervisor_capabilities` SET `storage_motion_supported`=true WHERE `hypervisor_type`='VMware' AND `hypervisor_version`='5.1';
3939
UPDATE `cloud`.`hypervisor_capabilities` SET `storage_motion_supported`=true WHERE `hypervisor_type`='VMware' AND `hypervisor_version`='5.0';
40+
UPDATE `cloud`.`hypervisor_capabilities` SET `storage_motion_supported`=true WHERE `hypervisor_type`='XenServer' AND `hypervisor_version`='6.1.0';
41+
UPDATE `cloud`.`hypervisor_capabilities` SET `storage_motion_supported`=true WHERE `hypervisor_type`='XenServer' AND `hypervisor_version`='6.2.0';
4042
DELETE FROM `cloud`.`configuration` where name='vmware.percluster.host.max';
4143
DELETE FROM `cloud`.`configuration` where name='router.template.id';
4244
DELETE FROM `cloud`.`configuration` where name='swift.enable';

0 commit comments

Comments
 (0)