canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #05512
[Bug 2083220] [NEW] cgroup_fj_function_cpuset and cgroup_fj_stress_cpuset* failed on Jammy with TWARN
Public bug reported:
cgroup_fj_function_cpuset and other 21 cgroup_fj_stress_cpuset* tests
failed on Jammy.
This is because of commit 1204b1d853 "cgroup_fj_common.sh: Disable
cgroup controller in cleanup function" in LTP upstream [1].
Which is trying to set "-cupset" in /sys/fs/cgroup/cgroup.subtree_control with:
[ "$cgroup_version" = "2" ] && ROD echo "-$subsystem" \> "/sys/fs/cgroup/cgroup.subtree_control"
However this command is not working on Jammy. It will cause a warning and consequently return a non-zero value, make the test being marked as failed:
cgroup_fj_function 10 TINFO: Removing all ltp subgroups...
echo: write error: Device or resource busy
cgroup_fj_function 10 TWARN: echo -cpuset > /sys/fs/cgroup/cgroup.subtree_control failed
We got our fork updated recently in order to cover Oracular. This change got pulled in here.
This is not a regression.
Test log of cgroup_fj_function_cpuset:
INFO: Test start time: Sat Sep 28 02:18:17 UTC 2024
COMMAND: /opt/ltp/bin/ltp-pan -q -e -S -a 220118 -n 220118 -f /tmp/ltp-qZ5HGIJRuI/alltests -l /dev/null -C /dev/null -T /dev/null
LOG File: /dev/null
FAILED COMMAND File: /dev/null
TCONF COMMAND File: /dev/null
Running tests.......
cgroup_fj_function 1 TINFO: Running: cgroup_fj_function.sh cpuset
cgroup_fj_function 1 TINFO: Tested kernel: Linux kt-j-l-gen-5-15-bc2r4d20-u-ltp-controllers-amd64 5.15.0-125-generic #135-Ubuntu SMP Fri Sep 27 13:53:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
cgroup_fj_function 1 TINFO: Using /tmp/ltp-qZ5HGIJRuI/LTP_cgroup_fj_function.HFFslnmBXb as tmpdir (ext2/ext3 filesystem)
cgroup_fj_function 1 TINFO: timeout per run is 0h 5m 0s
cgroup_fj_function 1 TINFO: test starts with cgroup version 2
cgroup_fj_function 1 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 2 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 3 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 4 TINFO: Attaching task 220211 to /sys/fs/cgroup/ltp/test-220163/ltp_1
cgroup_fj_function 4 TPASS: Group /sys/fs/cgroup/ltp/test-220163/ltp_1 with task 220211 cannot be removed
cgroup_fj_function 5 TPASS: Dir /sys/fs/cgroup/ltp/test-220163/ltp_1 with subdir 'a' cannot be removed
cgroup_fj_function 6 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 7 TPASS: Tasks file /sys/fs/cgroup/ltp/test-220163/ltp_1/tasks cannot be removed
cgroup_fj_function 8 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 9 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 10 TINFO: Removing all ltp subgroups...
echo: write error: Device or resource busy
cgroup_fj_function 10 TWARN: echo -cpuset > /sys/fs/cgroup/cgroup.subtree_control failed
cgroup_fj_function 10 TINFO: AppArmor enabled, this may affect test results
cgroup_fj_function 10 TINFO: it can be disabled with TST_DISABLE_APPARMOR=1 (requires super/root)
cgroup_fj_function 10 TINFO: loaded AppArmor profiles: none
Summary:
passed 3
failed 0
broken 0
skipped 6
warnings 1
INFO: ltp-pan reported some tests FAIL
LTP Version: 20240524
INFO: Test end time: Sat Sep 28 02:18:17 UTC 2024
Test log of cgroup_fj_stress_cpuset_2_2_none:
INFO: Test start time: Sat Sep 28 02:19:22 UTC 2024
COMMAND: /opt/ltp/bin/ltp-pan -q -e -S -a 223498 -n 223498 -f /tmp/ltp-Bq9yX6XLjI/alltests -l /dev/null -C /dev/null -T /dev/null
LOG File: /dev/null
FAILED COMMAND File: /dev/null
TCONF COMMAND File: /dev/null
Running tests.......
cgroup_fj_stress 1 TINFO: Running: cgroup_fj_stress.sh cpuset 2 2 none
cgroup_fj_stress 1 TINFO: Tested kernel: Linux kt-j-l-gen-5-15-bc2r4d20-u-ltp-controllers-amd64 5.15.0-125-generic #135-Ubuntu SMP Fri Sep 27 13:53:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
cgroup_fj_stress 1 TINFO: Using /tmp/ltp-Bq9yX6XLjI/LTP_cgroup_fj_stress.XbG4umRVOa as tmpdir (ext2/ext3 filesystem)
cgroup_fj_stress 1 TINFO: timeout per run is 0h 5m 0s
cgroup_fj_stress 1 TINFO: test starts with cgroup version 2
cgroup_fj_stress 1 TINFO: Creating subgroups ...
cgroup_fj_stress 1 TINFO: ... mkdired 7 times
cgroup_fj_stress 1 TPASS: All done!
cgroup_fj_stress 2 TINFO: Removing all ltp subgroups...
echo: write error: Device or resource busy
cgroup_fj_stress 2 TWARN: echo -cpuset > /sys/fs/cgroup/cgroup.subtree_control failed
cgroup_fj_stress 2 TINFO: AppArmor enabled, this may affect test results
cgroup_fj_stress 2 TINFO: it can be disabled with TST_DISABLE_APPARMOR=1 (requires super/root)
cgroup_fj_stress 2 TINFO: loaded AppArmor profiles: none
Summary:
passed 1
failed 0
broken 0
skipped 0
warnings 1
INFO: ltp-pan reported some tests FAIL
LTP Version: 20240524
INFO: Test end time: Sat Sep 28 02:19:22 UTC 2024
[1] https://github.com/linux-test-
project/ltp/commit/1204b1d853522c1a02ee98af39524e433bb261d6
** Affects: ubuntu-kernel-tests
Importance: Undecided
Status: New
** Tags: 5.15 jammy sru-20240930 ubuntu-ltp-controllers
--
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2083220
Title:
cgroup_fj_function_cpuset and cgroup_fj_stress_cpuset* failed on Jammy
with TWARN
Status in ubuntu-kernel-tests:
New
Bug description:
cgroup_fj_function_cpuset and other 21 cgroup_fj_stress_cpuset* tests
failed on Jammy.
This is because of commit 1204b1d853 "cgroup_fj_common.sh: Disable
cgroup controller in cleanup function" in LTP upstream [1].
Which is trying to set "-cupset" in /sys/fs/cgroup/cgroup.subtree_control with:
[ "$cgroup_version" = "2" ] && ROD echo "-$subsystem" \> "/sys/fs/cgroup/cgroup.subtree_control"
However this command is not working on Jammy. It will cause a warning and consequently return a non-zero value, make the test being marked as failed:
cgroup_fj_function 10 TINFO: Removing all ltp subgroups...
echo: write error: Device or resource busy
cgroup_fj_function 10 TWARN: echo -cpuset > /sys/fs/cgroup/cgroup.subtree_control failed
We got our fork updated recently in order to cover Oracular. This change got pulled in here.
This is not a regression.
Test log of cgroup_fj_function_cpuset:
INFO: Test start time: Sat Sep 28 02:18:17 UTC 2024
COMMAND: /opt/ltp/bin/ltp-pan -q -e -S -a 220118 -n 220118 -f /tmp/ltp-qZ5HGIJRuI/alltests -l /dev/null -C /dev/null -T /dev/null
LOG File: /dev/null
FAILED COMMAND File: /dev/null
TCONF COMMAND File: /dev/null
Running tests.......
cgroup_fj_function 1 TINFO: Running: cgroup_fj_function.sh cpuset
cgroup_fj_function 1 TINFO: Tested kernel: Linux kt-j-l-gen-5-15-bc2r4d20-u-ltp-controllers-amd64 5.15.0-125-generic #135-Ubuntu SMP Fri Sep 27 13:53:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
cgroup_fj_function 1 TINFO: Using /tmp/ltp-qZ5HGIJRuI/LTP_cgroup_fj_function.HFFslnmBXb as tmpdir (ext2/ext3 filesystem)
cgroup_fj_function 1 TINFO: timeout per run is 0h 5m 0s
cgroup_fj_function 1 TINFO: test starts with cgroup version 2
cgroup_fj_function 1 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 2 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 3 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 4 TINFO: Attaching task 220211 to /sys/fs/cgroup/ltp/test-220163/ltp_1
cgroup_fj_function 4 TPASS: Group /sys/fs/cgroup/ltp/test-220163/ltp_1 with task 220211 cannot be removed
cgroup_fj_function 5 TPASS: Dir /sys/fs/cgroup/ltp/test-220163/ltp_1 with subdir 'a' cannot be removed
cgroup_fj_function 6 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 7 TPASS: Tasks file /sys/fs/cgroup/ltp/test-220163/ltp_1/tasks cannot be removed
cgroup_fj_function 8 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 9 TCONF: Controller mounted on cgroup2 hierarchy, skipping test
cgroup_fj_function 10 TINFO: Removing all ltp subgroups...
echo: write error: Device or resource busy
cgroup_fj_function 10 TWARN: echo -cpuset > /sys/fs/cgroup/cgroup.subtree_control failed
cgroup_fj_function 10 TINFO: AppArmor enabled, this may affect test results
cgroup_fj_function 10 TINFO: it can be disabled with TST_DISABLE_APPARMOR=1 (requires super/root)
cgroup_fj_function 10 TINFO: loaded AppArmor profiles: none
Summary:
passed 3
failed 0
broken 0
skipped 6
warnings 1
INFO: ltp-pan reported some tests FAIL
LTP Version: 20240524
INFO: Test end time: Sat Sep 28 02:18:17 UTC 2024
Test log of cgroup_fj_stress_cpuset_2_2_none:
INFO: Test start time: Sat Sep 28 02:19:22 UTC 2024
COMMAND: /opt/ltp/bin/ltp-pan -q -e -S -a 223498 -n 223498 -f /tmp/ltp-Bq9yX6XLjI/alltests -l /dev/null -C /dev/null -T /dev/null
LOG File: /dev/null
FAILED COMMAND File: /dev/null
TCONF COMMAND File: /dev/null
Running tests.......
cgroup_fj_stress 1 TINFO: Running: cgroup_fj_stress.sh cpuset 2 2 none
cgroup_fj_stress 1 TINFO: Tested kernel: Linux kt-j-l-gen-5-15-bc2r4d20-u-ltp-controllers-amd64 5.15.0-125-generic #135-Ubuntu SMP Fri Sep 27 13:53:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
cgroup_fj_stress 1 TINFO: Using /tmp/ltp-Bq9yX6XLjI/LTP_cgroup_fj_stress.XbG4umRVOa as tmpdir (ext2/ext3 filesystem)
cgroup_fj_stress 1 TINFO: timeout per run is 0h 5m 0s
cgroup_fj_stress 1 TINFO: test starts with cgroup version 2
cgroup_fj_stress 1 TINFO: Creating subgroups ...
cgroup_fj_stress 1 TINFO: ... mkdired 7 times
cgroup_fj_stress 1 TPASS: All done!
cgroup_fj_stress 2 TINFO: Removing all ltp subgroups...
echo: write error: Device or resource busy
cgroup_fj_stress 2 TWARN: echo -cpuset > /sys/fs/cgroup/cgroup.subtree_control failed
cgroup_fj_stress 2 TINFO: AppArmor enabled, this may affect test results
cgroup_fj_stress 2 TINFO: it can be disabled with TST_DISABLE_APPARMOR=1 (requires super/root)
cgroup_fj_stress 2 TINFO: loaded AppArmor profiles: none
Summary:
passed 1
failed 0
broken 0
skipped 0
warnings 1
INFO: ltp-pan reported some tests FAIL
LTP Version: 20240524
INFO: Test end time: Sat Sep 28 02:19:22 UTC 2024
[1] https://github.com/linux-test-
project/ltp/commit/1204b1d853522c1a02ee98af39524e433bb261d6
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2083220/+subscriptions
Follow ups