Mismatched apparmor features on HWE kernel roll
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
John Chittum | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu 22.04, the HWE kernel has rolled to 5.19. the 5.19 kernel includes the apparmor feature for ipc/posix_mqueue. livecd-rootfs only contains features for the 5.15 kernel, thus missing ipc/posix_mqueue. This leads to snap_preseed having a mismatch in features, and the preseed is not optimized. in a cloud environment this can lead to boot delays of between 5 and 10s (rough measurements observed while debugging)
livecd-rootfs bind mounts apparmor features in functions/
TESTING
a failing system will present issues when checking `snap debug seeding`
example bad output:
'preseed-
'preseeded': True,
'seed-completion': '5.765s',
'seed-restart-
'seeded': True}
This shows the comparison between what was seeded ('preseed-
a passing test will only have times:
{'image-
'preseeded': True,
'seed-completion': '9.726s',
'seeded': True}
to test:
1. create an image with an HWE kernel (for CPC this is ec2, gce, azure, oracle)
2. register image in cloud
3. run an instance
4. check `snap debug seeding`
Changed in livecd-rootfs (Ubuntu): | |
assignee: | nobody → John Chittum (jchittum) |
MP:
https:/ /code.launchpad .net/~jchittum/ livecd- rootfs/ +git/livecd- rootfs/ +merge/ 440607