[Bug 1948476] Re: [SRU] Allow target units to fail
Ćukasz Zemczak
1948476 at bugs.launchpad.net
Mon Dec 13 14:08:04 UTC 2021
Hello Alfonso, or anyone else affected,
Accepted systemd into focal-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/systemd/245.4-4ubuntu3.14 in a few
hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: systemd (Ubuntu Focal)
Status: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-focal
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1948476
Title:
[SRU] Allow target units to fail
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Focal:
Fix Committed
Bug description:
[Impact]
A systemd regression in focal made it think that target units cannot
fail, which produced warnings like:
emergency.target: Requested dependency OnFailure=reboot.target ignored
(target units cannot fail).
So the OnFailure settings are ignored for targets (see
https://github.com/snapcore/core-initrd/issues/33 for details).
Upstream fixed the issue in v246:
https://github.com/systemd/systemd/commit/94d1ddbd7cd15b1073757eb5ae0645c83f0b414c
[Test Plan]
Test on a UC system and check that the above warnings are not shown
anymore. Check that when a target service type fails, the OnFailure
setting is used and the mentioned service is run.
[Where problems could occur]
Issues might happen if some target has an OnFailure setting that was
never run in the past because of this bug, and the behavior is not
really right because it was never tested. However, OnFailure is not
used that much on 20.04 in target services:
/lib/systemd $ find . -name \*.target | xargs grep OnFailure
/lib/systemd $
/etc/systemd $ find . -name \*.target | xargs grep OnFailure
/etc/systemd $
I've seen it only in emergency.target for UC20.
[Other Info]
None
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1948476/+subscriptions
More information about the foundations-bugs
mailing list