Skip to content

Commit 7eb20b8

Browse files
author
Kishan Kavala
committed
CLOUDSTACK-4032: Added KVM.snapshot.enabled config to 41to42 upgrade
1 parent 2cbf97a commit 7eb20b8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎server/src/com/cloud/configuration/Config.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,9 @@ public String getComponent() {
572572
return "TemplateManager";
573573
} else if (_componentClass == VpcManager.class) {
574574
return "VpcManager";
575-
}else {
575+
} else if (_componentClass == SnapshotManager.class) {
576+
return "SnapshotManager";
577+
} else {
576578
return "none";
577579
}
578580
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2221,4 +2221,6 @@ CREATE VIEW `cloud`.`account_vmstats_view` AS
22212221
`cloud`.`vm_instance`
22222222
where
22232223
vm_type = 'User'
2224-
group by account_id , state;
2224+
group by account_id , state;
2225+
2226+
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Snapshots', 'DEFAULT', 'SnapshotManager', 'KVM.snapshot.enabled', 'false', 'whether snapshot is enabled for KVM hosts');

0 commit comments

Comments
 (0)