systemd-binfmt.service fails in tests-in-lxd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
systemd-
root@jammy:~# systemctl status systemd-binfmt
× systemd-
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Thu 2023-08-17 18:54:18 UTC; 1min 12s ago
Docs: man:systemd-
https:/
https:/
Main PID: 118 (code=exited, status=1/FAILURE)
CPU: 5ms
Aug 17 18:54:18 jammy systemd[1]: Starting Set Up Additional Binary Formats...
Aug 17 18:54:18 jammy systemd-
Aug 17 18:54:18 jammy systemd[1]: systemd-
Aug 17 18:54:18 jammy systemd[1]: systemd-
Aug 17 18:54:18 jammy systemd[1]: Failed to start Set Up Additional Binary Formats.
[Test Plan]
1. test_no_failed from boot-and-services should pass.
2. Manual test:
* Start a Jammy LXD container:
$ lxc launch ubuntu-daily:jammy jammy
$ lxc exec jammy bash
* In the container, check systemd-
root@jammy:~# systemctl status systemd-binfmt
● systemd-
Loaded: loaded (/lib/systemd/
Drop-In: /etc/systemd/
Active: active (exited) since Thu 2023-08-17 19:01:00 UTC; 2min 27s ago
Docs: man:systemd-
https:/
https:/
Main PID: 122 (code=exited, status=0/SUCCESS)
CPU: 5ms
Aug 17 19:01:00 jammy systemd[1]: Starting Set Up Additional Binary Formats...
Aug 17 19:01:00 jammy systemd[1]: Finished Set Up Additional Binary Formats.
root@jammy:~# journalctl -t systemd-binfmt -b
Aug 17 19:01:00 jammy systemd-
[ Where problems could occur]
The patches are contained to binfmt logic in systemd, and so any regressions would be within systemd-binfmt itself. The patches make it so that systemd-binfmt checks if /proc/sys/
[Original Description]
The systemd-
No failed units ... -------- journal for failed service systemd-
Dec 08 10:43:37 autopkgtest-
Dec 08 10:43:37 autopkgtest-
Dec 08 10:43:37 autopkgtest-
Dec 08 10:43:37 autopkgtest-
Dec 08 10:43:37 autopkgtest-
Dec 08 10:43:37 autopkgtest-
Dec 08 10:43:37 autopkgtest-
FAIL
test_rsyslog (__main_
test_tmp_cleanup (__main_
test_tmp_mount (__main_
test_udev (__main_
=======
FAIL: test_no_failed (__main_
No failed units
-------
Traceback (most recent call last):
File "/tmp/autopkgte
self.
AssertionError: Lists differ: ['systemd-
First list contains 1 additional elements.
First extra element 0:
'systemd-
- ['systemd-
+ []
The systemd-
[1] https:/
[2] https:/
Related branches
- Lukas Märdian: Approve
-
Diff: 796 lines (+623/-45)16 files modifieddebian/patches/lp1977630-fix_machinectl_pull_tar.patch (+81/-0)
debian/patches/lp1978079-efi-pstore-not-cleared-on-boot.patch (+5/-4)
debian/patches/lp1991829-add-CAP_LINUX_IMMUTABLE-to-systemd-machined-so-it-ca.patch (+29/-0)
debian/patches/lp1999275/binfmt-check-if-binfmt-is-mounted-before-applying-rules.patch (+80/-0)
debian/patches/lp1999275/binfmt-util-also-check-if-binfmt-is-mounted-in-read-write.patch (+41/-0)
debian/patches/lp1999275/binfmt-util-split-out-binfmt_mounted.patch (+69/-0)
debian/patches/lp1999275/unit-check-more-specific-path-to-be-written-by-systemd-bi.patch (+26/-0)
debian/patches/lp2009743/network-dhcp4-do-not-ignore-the-gateway-even-if-the-desti.patch (+59/-0)
debian/patches/lp2009743/test-network-add-one-more-testcase-for-DHCPv4-classless-r.patch (+33/-0)
debian/patches/lp2013543-core-reorder-systemd-arguments-on-reexec.patch (+58/-0)
debian/patches/lp2025563-shutdown-get-only-active-md-arrays.patch (+67/-0)
debian/patches/lp2028180-udev-rules-fix-nvme-symlink-creation-on-namespace-changes.patch (+47/-0)
debian/patches/series (+11/-1)
debian/systemd.postinst (+16/-1)
debian/tests/tests-in-lxd (+1/-1)
dev/null (+0/-38)
CVE References
description: | updated |
Changed in systemd (Ubuntu Jammy): | |
status: | Triaged → In Progress |
This has been resolved upstream[1] and I will bring the patches into lunar.
[1] https:/ /github. com/systemd/ systemd/ pull/25693