From 018389cb227356c62720b3646f47df8d3d2c925b Mon Sep 17 00:00:00 2001 From: Mikko Ylinen Date: Wed, 18 Feb 2026 13:42:02 +0200 Subject: [PATCH] tests: enable k8s-sandbox-vcpus-allocation.bats for tdx and coco-dev k8s-sandbox-vcpus-allocation.bats was disabled for qemu-tdx due to errors when moving to use "upstream" TDX KVM code. The failing test is vcpus-less-than-one-with-no-limits pod which ends up getting x86 default MaxCPU = 240 and erroring: Number of hotpluggable cpus requested (240) exceeds the maximum cpus supported by KVM (224) TDX max vcpus is capped to host's logical CPUs so 240 is too much. With the maxcpus logic fixed (=maxcpus not set at all) for configurations where confidential guest is enabled, qemu-tdx can be enabled for k8s-sandox-vcpus-allocation.bats again. Signed-off-by: Mikko Ylinen --- .../integration/kubernetes/k8s-sandbox-vcpus-allocation.bats | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/integration/kubernetes/k8s-sandbox-vcpus-allocation.bats b/tests/integration/kubernetes/k8s-sandbox-vcpus-allocation.bats index 09ba99c8ab..e24f88b4a8 100644 --- a/tests/integration/kubernetes/k8s-sandbox-vcpus-allocation.bats +++ b/tests/integration/kubernetes/k8s-sandbox-vcpus-allocation.bats @@ -10,8 +10,6 @@ load "${BATS_TEST_DIRNAME}/lib.sh" load "${BATS_TEST_DIRNAME}/tests_common.sh" setup() { - [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]] && skip "See: https://github.com/kata-containers/kata-containers/issues/12492" - setup_common || die "setup_common failed" pods=( "vcpus-less-than-one-with-no-limits" "vcpus-less-than-one-with-limits" "vcpus-more-than-one-with-limits" ) @@ -49,8 +47,6 @@ setup() { } teardown() { - [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]] && skip "See: https://github.com/kata-containers/kata-containers/issues/12492" - for pod in "${pods[@]}"; do kubectl logs ${pod} done