mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4539: [VMWARE] vmware.create.full.clone is set to true in upgraded setup;default nature of vms are full clone
Description:
Do not overwrite value of vmware.create.full.clone flag in the
cloud db if it already exists. This will preserve the configured
clone creation behaviour across upgrades.
(cherry picked from commit a30a33c14d)
Signed-off-by: animesh <animesh@apache.org>
This commit is contained in:
parent
72a3cbb82e
commit
42e66aa4e6
|
|
@ -403,7 +403,12 @@ CREATE TABLE `cloud`.`user_vm_clone_setting` (
|
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'UserVmManager', 'vmware.create.full.clone' , 'true', 'If set to true, creates VMs as full clones on ESX hypervisor');
|
||||
INSERT INTO `cloud`.`configuration` (category, instance, component, name, value, description)
|
||||
SELECT tmp.category, tmp.instance, tmp.component, tmp.name, tmp.value, tmp.description FROM
|
||||
(SELECT 'Advanced' category, 'DEFAULT' instance, 'UserVmManager' component, 'vmware.create.full.clone' name, 'true' value, 'If set to true, creates VMs as full clones on ESX hypervisor' description) tmp
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `cloud`.`configuration` WHERE name = 'vmware.create.full.clone');
|
||||
|
||||
|
||||
|
||||
CREATE TABLE `cloud`.`affinity_group` (
|
||||
`id` bigint unsigned NOT NULL auto_increment,
|
||||
|
|
|
|||
Loading…
Reference in New Issue