armhf dep8 failure due to restrictions changing apparmor profile status
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Auto Package Testing |
New
|
Undecided
|
Unassigned | ||
| nss-pam-ldapd (Ubuntu) |
Fix Released
|
Undecided
|
Jonas Jelten | ||
| Questing |
Fix Released
|
Undecided
|
Jonas Jelten | ||
| openldap (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
| Questing |
New
|
Undecided
|
Unassigned | ||
| python-ldap (Ubuntu) |
Fix Released
|
Undecided
|
Jonas Jelten | ||
| Questing |
Fix Released
|
Undecided
|
Jonas Jelten | ||
| rsyslog (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Hasenack | ||
| Questing |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
[ Impact ]
* Fix autopkgtests on armhf that fail due to Canonical infrastructure disallowing apparmor access
[ Test Plan ]
* without the patch, autopkgtests fail on armhf due to lacking access to the apparmor api because of permission restrictions in the testing container
* with the applied patch, armhf tests can succeed
[ Where problems could occur ]
* this just changes the test, no change is expected in the resulting binary packages.
[ Other info ]
this is a fix needed to re-activate openldap's apparmor profile in bug #2119884 and is related to LP: #2130351. since these are just test changes they could be left in proposed if the SRU team prefers.
[ Analysis ]
The armhf DEP8 testers in Ubuntu infrastructure have some restrictions and cannot change an apparmor profile. This is causing the tests to fail, because they try to make sure rsyslog is being tested in enforced mode:
Enforcing the /etc/apparmor.
Setting /etc/apparmor.
ERROR: /sbin/apparmor_
The package migrated to lunar even with this error because it never had DEP8 tests before, and the armhf baseline was born in this error state.
These are the LXD settings used for armhf containers: https:/
I created an armhf container on a pi4 host (arm64) with these settings, but couldn't reproduce the issue there. There is something else going on in the autopkgtest infra regarding arhmf.
FTR, I created the container like this:
lxc launch ubuntu-daily:lunar pi4:l-armhf \
-c raw.lxc=
-c raw.lxc=
-c security.
EDIT: hm, the above actually doesn't work. Only the last raw.lxc value is used. See https:/
But still, apparmor works just fine. There is some other setup going on in the autopkgtest infrastructure.
Related branches
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 121 lines (+76/-1)5 files modifieddebian/changelog (+9/-0)
debian/tests/apparmor.sh (+58/-0)
debian/tests/control (+1/-1)
debian/tests/startserver (+4/-0)
debian/tests/upstream (+4/-0)
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 139 lines (+80/-2)5 files modifieddebian/changelog (+9/-0)
debian/control (+2/-1)
debian/patches/fix-c23-bool-keyword.patch (+29/-0)
debian/patches/series (+1/-0)
debian/tests/testsuite (+39/-1)
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 135 lines (+78/-2)6 files modifieddebian/changelog (+9/-0)
debian/control (+2/-1)
debian/tests/apparmor.sh (+58/-0)
debian/tests/control (+1/-1)
debian/tests/startserver (+4/-0)
debian/tests/upstream (+4/-0)
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 82 lines (+47/-1)2 files modifieddebian/changelog (+8/-0)
debian/tests/testsuite (+39/-1)
- Bryce Harrington (community): Approve
- git-ubuntu bot: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 164 lines (+51/-45)6 files modifieddebian/changelog (+8/-0)
debian/tests/control (+3/-3)
debian/tests/simple-logger (+3/-14)
debian/tests/simple-mysql (+1/-14)
debian/tests/simple-pgsql (+1/-14)
debian/tests/utils (+35/-0)
| description: | updated |
| description: | updated |
| description: | updated |
| description: | updated |
| no longer affects: | autopkgtest-cloud |
| Changed in rsyslog (Ubuntu Questing): | |
| status: | New → Invalid |
| Changed in python-ldap (Ubuntu Questing): | |
| status: | New → In Progress |
| Changed in nss-pam-ldapd (Ubuntu Questing): | |
| status: | New → In Progress |
| Changed in nss-pam-ldapd (Ubuntu): | |
| assignee: | nobody → Jonas Jelten (jj) |
| Changed in nss-pam-ldapd (Ubuntu Questing): | |
| assignee: | nobody → Jonas Jelten (jj) |
| Changed in python-ldap (Ubuntu): | |
| assignee: | nobody → Jonas Jelten (jj) |
| Changed in python-ldap (Ubuntu Questing): | |
| assignee: | nobody → Jonas Jelten (jj) |
| description: | updated |
| description: | updated |

This bug was fixed in the package rsyslog - 8.2302.0-1ubuntu2
---------------
rsyslog (8.2302.0-1ubuntu2) lunar; urgency=medium
* d/t/simple-*, d/t/control: ignore aa-enforce error, which can happen
on armhf in the Ubuntu DEP8 infrastructure, and allow-stderr for
these tests (LP: #2008393)
-- Andreas Hasenack <email address hidden> Thu, 23 Feb 2023 18:56:07 -0300