test_apport_hooks from ubuntu_qrt_apparmor will timeout on J-s390x LPAR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QA Regression Testing |
New
|
Undecided
|
Unassigned | ||
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
This issue is exclusively failing on J-5.15 s390x LPAR s2lp4. A manually provisioned system.
The test will just hang:
$ time sudo python3 ./test-apparmor.py -v ApparmorApport.
Running test: './test-
Skipping private tests
WARN: kernel rate limiting in effect
Disabling ratelimiting until the next reboot. To renable, run:
# sysctl -w kernel.
test_apport_hooks (__main_
Test required apport hooks ...
ps command shows:
$ ps aux |grep apport
root 5972 0.0 0.0 16872 5640 pts/1 S+ 03:03 0:00 sudo python3 ./test-apparmor.py -v ApparmorApport.
root 5973 0.0 0.0 42360 28604 pts/1 S+ 03:03 0:00 python3 ./test-apparmor.py -v ApparmorApport.
root 5992 0.0 0.0 2548 856 pts/1 S+ 03:03 0:00 /bin/sh -e /usr/bin/apport-bug apparmor --save /tmp/testlibzx4
root 5993 0.0 0.2 173608 90816 pts/1 Sl+ 03:03 0:01 /usr/bin/python3 /usr/bin/apport-cli apparmor --save /tmp/testlibzx4
ubuntu 23837 0.0 0.0 9072 1904 pts/2 S+ 05:43 0:00 grep --color=auto apport
strace shows the command is trying to read something:
$ sudo strace -p 5993
strace: Process 5993 attached
read(0, ^Cstrace: Process 5993 detached
<detached ...>
So if you run the command manually, you will see it's waiting user input
# /usr/bin/python3 /usr/bin/apport-cli apparmor --save /tmp/test
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
..
*** It seems you have modified the contents of "/etc/apparmor.
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): ^C
Here is the content:
$ cat /etc/apparmor.
# This file is updated currently not managed by the package but in the future
# will be overwritten on upgrades.
#
# For site-specific adjustments, please see:
# /etc/apparmor.
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
#include <abstractions/
This file belongs to apparmor. I am not sure how to correct this for the moment.
description: | updated |