"systemctl default" stops ifup@.service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| systemd (Debian) |
Fix Released
|
Unknown
|
||
| systemd (Ubuntu) |
Medium
|
Martin Pitt | ||
| Vivid |
Medium
|
Martin Pitt |
Bug Description
Running the display-manager autopkgtest causes eth0 to get shut down:
Apr 28 08:30:15 autopkgtest ifdown[3267]: Internet Systems Consortium DHCP Client 4.3.1
Apr 28 08:30:15 autopkgtest ifdown[3267]: Copyright 2004-2014 Internet Systems Consortium.
Apr 28 08:30:15 autopkgtest ifdown[3267]: All rights reserved.
Apr 28 08:30:15 autopkgtest ifdown[3267]: For info, please visit https:/
Apr 28 08:30:15 autopkgtest ifdown[3267]: Listening on LPF/eth0/
Apr 28 08:30:15 autopkgtest ifdown[3267]: Sending on LPF/eth0/
Apr 28 08:30:15 autopkgtest ifdown[3267]: Sending on Socket/fallback
Apr 28 08:30:15 autopkgtest dhclient[3301]: DHCPRELEASE on eth0 to 10.0.2.2 port 67 (xid=0x3ca4ea0a)
Apr 28 08:30:15 autopkgtest ifdown[3267]: DHCPRELEASE on eth0 to 10.0.2.2 port 67 (xid=0x3ca4ea0a)
This breaks the ssh runner.
SRU TEST CASE:
==============
- Prepare a system which uses ifupdown (e. g. a standard adt-buildvm-
- Start it, run "sudo systemctl default"
- With vivid final's systemd, this will stop <email address hidden> and hence shut down eth0. ssh and other network connections will stop.
- With this fix, <email address hidden> and eth0 should stay running/up.
Regression potential: Very low: We don't use "systemctl isolate" during regular operation, and more elaborate commands like "systemctl isolate rescue.target" are currently broken on Ubuntu anyway due to our D-Bus shutdown hack.
Changed in systemd (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Martin Pitt (pitti) |
summary: |
- display-managers autopkgtest shuts down eth0 + "systemctl default" stops ifup@.service |
Martin Pitt (pitti) wrote : | #2 |
This is caused by "systemctl default" which isolates default.target and shuts down anything else. IMHO this is an actual bug, or at least unexpected/
I propose this fix: http://
Martin Pitt (pitti) wrote : | #3 |
Fixed in experimental branch: http://
Cherry-picked into ubuntu branch: http://
Changed in systemd (Ubuntu Vivid): | |
status: | In Progress → Fix Committed |
description: | updated |
Martin Pitt (pitti) wrote : | #4 |
Sorry, the correct Ubuntu cherry-pick is http://
Changed in systemd (Debian): | |
status: | Unknown → Confirmed |
Changed in systemd (Debian): | |
status: | Confirmed → Fix Released |
Brian Murray (brian-murray) wrote : | #5 |
This hasn't made it to -proposed or -updates yet, setting back to Triaged.
Changed in systemd (Ubuntu Vivid): | |
status: | Fix Committed → Triaged |
Changed in systemd (Ubuntu): | |
milestone: | vivid-updates → none |
Hello Martin, or anyone else affected,
Accepted systemd into vivid-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
Changed in systemd (Ubuntu Vivid): | |
status: | Triaged → Fix Committed |
tags: | added: verification-needed |
Martin Pitt (pitti) wrote : | #7 |
I successfully ran the test case on the -proposed package.
tags: |
added: verification-done removed: verification-needed |
Launchpad Janitor (janitor) wrote : | #8 |
This bug was fixed in the package systemd - 219-8ubuntu1
---------------
systemd (219-8ubuntu1) wily; urgency=medium
* Merge with Debian experimental branch. Remaining Ubuntu changes:
- Hack to support system-image read-only /etc, and modify files in
/
- Keep our much simpler udev maintainer scripts (all platforms must
support udev, no debconf).
- initramfs init-top: Drop $ROOTDELAY, we do that in a more sensible way
with wait-for-root. Will get applicable to Debian once Debian gets
wait-for-root in initramfs-tools.
- initramfs init-bottom: If LVM is installed, settle udev,
otherwise we get missing LV symlinks. Workaround for LP #1185394.
- Add debian/
dependencies to "lvm2" which is handled with udev rules in Ubuntu.
- Add debian/
script.
- Provide shutdown fallback for upstart. (LP: #1370329)
- debian/
really support "allow-hotplug" in Ubuntu at the moment, so we need to
deal with "auto" devices appearing after "/etc/init.
already ran. (LP: #1374521) Also, check if devices are actually defined
in /etc/network/
Also run ifup in the background during boot, to avoid blocking
network.
- ifup@.service: Drop dependency on networking.service (i. e.
/
This avoids unnecessary dependencies/
cycles if hooks wait for other interfaces to come up (like ifenslave
with bonding interfaces). (LP: #1414544)
- Add Get-RTC-
Ubuntu we currently keep the setting whether the RTC is in local or UTC
time in /etc/default/rcS "UTC=yes|no", instead of /etc/adjtime.
(LP: #1377258)
- Put session scopes into all cgroup controllers. This makes unprivileged
user LXC containers work under systemd. (LP: #1346734)
- systemctl: Don't forward telinit u to upstart. This works around
upstart's Restart() always reexec'ing /sbin/init on Restart(), even if
that changes to point to systemd during the upgrade. This avoids running
systemd during a dist-upgrade. (LP: #1430479)
- Drop hwdb-update dependency from udev-trigger.
introduced in v219-stable. This causes udev and plymouth to start too
late and isn't really needed in Ubuntu yet as we don't support stateless
systems yet and handle hwdb.bin updates through dpkg triggers. This can
be dropped again with initramfs-tools 0.117.
- Lower Breaks: to plymouth version which has the udev inotify fix in
Ubuntu.
- Lower libappamor dep to the Ubuntu version where it moved to /lib.
- Change systemd-sysv's conflicts to upstart-sysv. (LP: #1422681)
- Make failure of boot-and-services NSpawn.test_boot non-fatal for now.
This currently fails when being t...
Changed in systemd (Ubuntu): | |
status: | Fix Committed → Fix Released |
Launchpad Janitor (janitor) wrote : | #9 |
This bug was fixed in the package systemd - 219-7ubuntu5
---------------
systemd (219-7ubuntu5) vivid; urgency=medium
* Revert upstream commit 743970d which immediately SIGKILLs units during
shutdown. This leads to problems like bash not being able to write its
history, mosh not saving its state, and similar failed cleanup actions.
(LP: #1448259)
* ifup@.service: Set IgnoreOnIsolate, so that "systemctl default" does not
shut down network interfaces. (LP: #1449380). Add PartOf=
so that stopping network.target also stops network interfaces.
* 75-persistent-
not a subsystem). (LP: #1437375)
* debian/
SysV-only unit. Reproduces LP #1447807.
* Fix systemctl enable for SysV scripts without a native unit. We must not
try and enable the nonexisting unit then. (LP: #1447807)
-- Martin Pitt <email address hidden> Thu, 07 May 2015 07:45:34 +0200
Changed in systemd (Ubuntu Vivid): | |
status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for systemd has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Targetting for SRU to vivid so that we can test this in nova.