ubuntu_qrt_apparmor: proto:icmp, type:dgram, domain:inet failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
We are getting the following error with the latest lunar kernel (6.2.0-20.20) on amd64, arm64 and ppc64el:
19:41:52 ERROR| [stderr] test_protocol (__main_
19:41:52 ERROR| [stderr] Test network protocol ... FAIL
19:41:52 ERROR| [stderr]
19:41:52 ERROR| [stderr] =======
19:41:52 ERROR| [stderr] FAIL: test_protocol (__main_
19:41:52 ERROR| [stderr] Test network protocol
19:41:52 ERROR| [stderr] -------
19:41:52 DEBUG| [stdout] Skipping private tests
19:41:52 DEBUG| [stdout]
19:41:52 DEBUG| [stdout] proto:icmp
19:41:52 ERROR| [stderr] Traceback (most recent call last):
19:41:52 ERROR| [stderr] File "/home/
19:41:52 ERROR| [stderr] self.assertEqua
19:41:52 ERROR| [stderr] AssertionError: 0 != 127 : Got exit code 127, expected 0 (icmp)
19:41:52 ERROR| [stderr] [Errno 2] No such file or directory: '/tmp/testlibys
19:41:52 ERROR| [stderr]
A similar error happens also with type:dgram and domain:inet.
The kernel doesn't seem to miss any apparmor-related patches, so it might be a user-space / test regression.
This seems to be caused by test-net.py and test-unix- domain- connect. py explicitly using
#!/usr/ bin/python2
when I change this locally to
#!/usr/ bin/python3
the tests pass. This is a larger issue in qrt as there are still several tests beyond the subtes subtests for test-apparmor.py that are hard coding /usr/bin/python2. We will start working on a fix