From 28cdf6e31fc7b97244453f3a3909de571b3c79ac Mon Sep 17 00:00:00 2001 From: Travis Wu Date: Wed, 26 Aug 2026 19:03:19 +0800 Subject: [PATCH] feat(tuning): register nova.nested.virt.enabled for the compute roles Signed-off-by: Travis Wu --- internal/cubecos/tuning.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cubecos/tuning.go b/internal/cubecos/tuning.go index 045b2a6b..2b39638a 100644 --- a/internal/cubecos/tuning.go +++ b/internal/cubecos/tuning.go @@ -101,6 +101,7 @@ const ( NovaLiveResizeMaxVcpus = "nova.live.resize.max.vcpus" NovaLiveResizeMaxMemoryMb = "nova.live.resize.max.memory.mb" NovaLiveResizeMigrateTmout = "nova.live.resize.migrate.timeout" + NovaNestedVirtEnabled = "nova.nested.virt.enabled" NovaOvercommitCpuRatio = "nova.overcommit.cpu.ratio" NovaOvercommitDiskRatio = "nova.overcommit.disk.ratio" NovaOvercommitRamRatio = "nova.overcommit.ram.ratio" @@ -210,6 +211,8 @@ func setTuningToRoles() { tuningToRoles[NovaLiveResizeMaxVcpus] = novaLiveResizeRoles tuningToRoles[NovaLiveResizeMaxMemoryMb] = novaLiveResizeRoles tuningToRoles[NovaLiveResizeMigrateTmout] = novaLiveResizeRoles + // Only applied in nova.conf's [libvirt] section. + tuningToRoles[NovaNestedVirtEnabled] = nodes.ComputeRoles tuningToRoles[NovaOvercommitCpuRatio] = nodes.AllRoles tuningToRoles[NovaOvercommitDiskRatio] = nodes.AllRoles tuningToRoles[NovaOvercommitRamRatio] = nodes.AllRoles