Skip to content

Commit 4f85c55

Browse files
authored
engine/schema: fix CPU cap limitation for upgraded environment (#7808)
CPU cap limitation was enabled as part of #6420 that changes behaviour for existing environments. The CPU cap limitation on KVM causes systemvms to not start or be really slow in nested and virtualised environments. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent ab0297e commit 4f85c55

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

engine/schema/src/main/resources/META-INF/db/schema-41800to41810.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (6, 'Windows Server 2022 (64-bit)', 'VM
3131
CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (6, 'Windows Server 2022 (64-bit)', 'VMware', '8.0', 'windows2019srvNext_64Guest');
3232
CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (6, 'Windows Server 2022 (64-bit)', 'VMware', '8.0.0.1', 'windows2019srvNext_64Guest');
3333
CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (6, 'Windows Server 2022 (64-bit)', 'Xenserver', '8.2.0', 'Windows Server 2022 (64-bit)');
34+
35+
-- Don't enable CPU cap for default system offerings, fixes regression from https://github.com/apache/cloudstack/pull/6420
36+
UPDATE `cloud`.`service_offering` so
37+
SET so.limit_cpu_use = 0
38+
WHERE so.default_use = 1 AND so.vm_type IN ('domainrouter', 'secondarystoragevm', 'consoleproxy', 'internalloadbalancervm', 'elasticloadbalancervm');

0 commit comments

Comments
 (0)