From f6dc8903ea36c0348eb7d4e1aed5be110d5331a6 Mon Sep 17 00:00:00 2001 From: Kadin Sayani Date: Fri, 18 Oct 2024 08:50:20 -0600 Subject: [PATCH] tests: Add tests for `limits.cpu.pin_strategy` and `limits.cpu` config and profile settings Signed-off-by: Kadin Sayani --- test/suites/config.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/suites/config.sh b/test/suites/config.sh index 1c98339bdcc4..d72e29dcc080 100644 --- a/test/suites/config.sh +++ b/test/suites/config.sh @@ -181,6 +181,12 @@ test_config_profiles() { lxc profile device list onenic | grep eth0 lxc profile device show onenic | grep p2p + # test setting limits.cpu.pin_strategy at the local config and profile level + ! lxc config set c1 limits.cpu.pin_strategy=auto || false + lxc profile set default limits.cpu.pin_strategy=auto + ! lxc profile set default limits.cpu=1-2 || false # test adding a cpu limit with limits.cpu.pin_strategy set (should fail) + lxc profile unset default limits.cpu.pin_strategy + # test live-adding a nic veth_host_name="veth$$" lxc start foo