CLOUDSTACK-4032: Added KVM.snapshot.enabled config to 41to42 upgrade

This commit is contained in:
Kishan Kavala 2013-08-02 11:58:48 +05:30
parent 2cbf97a6f1
commit 7eb20b8500
2 changed files with 6 additions and 2 deletions

View File

@ -572,7 +572,9 @@ public enum Config {
return "TemplateManager";
} else if (_componentClass == VpcManager.class) {
return "VpcManager";
}else {
} else if (_componentClass == SnapshotManager.class) {
return "SnapshotManager";
} else {
return "none";
}
}

View File

@ -2221,4 +2221,6 @@ CREATE VIEW `cloud`.`account_vmstats_view` AS
`cloud`.`vm_instance`
where
vm_type = 'User'
group by account_id , state;
group by account_id , state;
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Snapshots', 'DEFAULT', 'SnapshotManager', 'KVM.snapshot.enabled', 'false', 'whether snapshot is enabled for KVM hosts');