cgroup from ubuntu_ltp_controllers failed (TBROK: 'rdma' controller is unknown to LTP)

Bug #1983659 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned

Bug Description

With LTP update (bug 1982995) to commit ac1a3e40c5 "controllers: update cgroup_regression_test to use newer cgroup lib"

cgroup test:
INFO: Test start time: Wed Aug 3 13:52:37 UTC 2022
COMMAND: /opt/ltp/bin/ltp-pan -q -e -S -a 56575 -n 56575 -f /tmp/ltp-cPjidZlr9W/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_regression_test 1 TINFO: timeout per run is 0h 5m 0s
cgroup_regression_test 1 TPASS: no kernel bug was found
cgroup_regression_test 2 TPASS: notify_on_release is inherited
cgroup_regression_test 3 TPASS: no kernel bug was found
cgroup_regression_test 4 TCONF: CONFIG_LOCKDEP is not enabled
cgroup_regression_test 5 TINFO: The '/tmp/ltp-cPjidZlr9W/LTP_cgroup_regression_test.vvkEkXC0vR/cgroup' is not mounted, skipping umount
cgroup_regression_test 5 TPASS: no kernel bug was found
cgroup_regression_test 6 TCONF: CONFIG_CGROUP_NS is NOT supported in Kernels >= 3.0
tst_cgroup.c:819: TBROK: 'rdma' controller is unknown to LTP
cgroup_regression_test 7 TBROK: 'tst_cgctl require' exited
cgroup_regression_test 7 TINFO: AppArmor enabled, this may affect test results
cgroup_regression_test 7 TINFO: it can be disabled with TST_DISABLE_APPARMOR=1 (requires super/root)
cgroup_regression_test 7 TINFO: loaded AppArmor profiles: none

Summary:
passed 4
failed 0
broken 1
skipped 2
warnings 0
INFO: ltp-pan reported some tests FAIL
LTP Version: 20220527
INFO: Test end time: Wed Aug 3 13:53:38 UTC 2022

memcg_control:
INFO: Test start time: Wed Aug 3 14:25:17 UTC 2022
COMMAND: /opt/ltp/bin/ltp-pan -q -e -S -a 104816 -n 104816 -f /tmp/ltp-3EW278bbe8/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.......
memcg_control_test 1 TINFO: timeout per run is 0h 5m 0s
memcg_control_test 1 TINFO: Test starts with cgroup version 1
memcg_control_test 1 TINFO: Test #1: Checking if the memory usage limit imposed by the topmost group is enforced
tst_rod: Failed to open '/sys/fs/cgroup/memory/ltp/test-104860/memory.memsw.limit_in_bytes' for writing: Permission denied
memcg_control_test 1 TBROK: echo 4096 > /sys/fs/cgroup/memory/ltp/test-104860/memory.memsw.limit_in_bytes failed
memcg_control_test 1 TINFO: AppArmor enabled, this may affect test results
memcg_control_test 1 TINFO: it can be disabled with TST_DISABLE_APPARMOR=1 (requires super/root)
memcg_control_test 1 TINFO: loaded AppArmor profiles: none

Summary:
passed 0
failed 0
broken 1
skipped 0
warnings 0
INFO: ltp-pan reported some tests FAIL
LTP Version: 20220527
INFO: Test end time: Wed Aug 3 14:25:17 UTC 2022

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: cgroup / memcg_control from ubuntu_ltp_controllers failed on F

This issue exists with the latest LTP tip as well (d4f0d8ed1d6 "read_all: Prevent FNM_EXTMATCH redefinition")

summary: - cgroup / memcg_control from ubuntu_ltp failed on F
+ cgroup / memcg_control from ubuntu_ltp_controllers failed on F
tags: added: ubuntu-ltp-controllers
removed: ubuntu-ltp
Revision history for this message
Luke Nowakowski-Krijger (lukenow) wrote :

That rdma issue is new, I forgot to add that controller to the list off supported controllers.. Ill get around to fixing that one.

But the second issue feels like its been one that has been failing for a while if I remember correctly?

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hi Luke,

Here is the old memcg_control test result (with 6f88e0f6 LTP 20220527) on Focal:

<<<test_start>>>
tag=memcg_control stime=1659924061
cmdline="memcg_control_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
memcg_control 0 TINFO : Test #1: Checking if the memory usage limit imposed by the topmost group is enforced
/opt/ltp/testcases/bin/memcg_control_test.sh: 86: cannot create /tmp/ltp-sqrGf2cIhv/mnt/1/memory.memsw.limit_in_bytes: Permission denied
memcg_control 1 TPASS : Test #1: passed
memcg_control 1 TPASS : memcg_control: passed
<<<execution_status>>>
initiation_status="ok"
duration=6 termination_type=exited termination_id=0 corefile=no
cutime=2 cstime=3
<<<test_end>>>

Although it's also complaining about permission issue, but the test didn't fail. I haven't check the code yet but a quick bisect shows a77b65bbe5 ("controllers: Update memcg_control_test to newer test lib and cgroup lib") is the first bad commit.

Revision history for this message
Cory Todd (corytodd) wrote :

This affects 2022.08.08/focal/linux-fips/5.4.0-1060.68

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This also affects bionic:linux-aws-5.4:

17645 memcg_control_test 1 TBROK: echo 4096 > /sys/fs/cgroup/memory/ltp/test-3614/memory.memsw.limit_in_bytes failed

Revision history for this message
Luke Nowakowski-Krijger (lukenow) wrote :

Patch submitted upstream to fix the rdma controller issue [LTP][PATCH] API/cgroup: Add rdma controller https://lists.linux.it/pipermail/ltp/2022-August/030257.html

Im looking into the issue for the other failure still and will follow up with a fix for that.

Po-Hsu Lin (cypressyew)
summary: - cgroup / memcg_control from ubuntu_ltp_controllers failed on F
+ cgroup / memcg_control from ubuntu_ltp_controllers failed on F (TBROK:
+ 'tst_cgctl require' exited)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: cgroup / memcg_control from ubuntu_ltp_controllers failed on F (TBROK: 'tst_cgctl require' exited)

Looks like this issue will gone with LTP 20230516, commit 3ebc2dfa85c

Po-Hsu Lin (cypressyew)
tags: added: ltp-20230516
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For memcg_control please refer to bug 2028776

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hints removed, closing this bug.

summary: - cgroup / memcg_control from ubuntu_ltp_controllers failed on F (TBROK:
- 'tst_cgctl require' exited)
+ cgroup from ubuntu_ltp_controllers failed (TBROK: 'rdma' controller is
+ unknown to LTP)
Changed in ubuntu-kernel-tests:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.