[Bug 1457321] Re: lxc-stop does not shut down container
Launchpad Bug Tracker
1457321 at bugs.launchpad.net
Wed Jun 10 18:21:30 UTC 2015
This bug was fixed in the package systemd - 219-7ubuntu6
---------------
systemd (219-7ubuntu6) vivid; urgency=medium
* Fix assertion crash with empty Exec*= paths. (LP: #1454173)
* systemd-fsckd autopkgtest: Stop assuming that
/etc/default/grub.d/90-autopkgtest.cfg exists.
* systemd-fsckd autopkgtest: Add missing plymouth test dependency.
* debian/tests/boot-smoke: Allow 10 seconds for systemd jobs to settle down.
* Fix "tentative" state of devices which are not in /dev (mostly in
containers), and avoid overzealous cleanup unmounting of mounts from them.
(LP: #1444402)
* journal: Gracefully handle failure to bind to audit socket, which is known
to fail in namespaces (containers) with current kernels. Also
conditionalize systemd-journald-audit.socket on CAP_AUDIT_READ.
(LP: #1457054)
* Add sigpwr-container-shutdown.service: Power off when receiving SIGPWR in
a container. This makes lxc-stop work for systemd containers.
(LP: #1457321)
-- Martin Pitt <martin.pitt at ubuntu.com> Thu, 21 May 2015 14:47:46
+0200
** Changed in: systemd (Ubuntu Vivid)
Status: Fix Committed => Fix Released
--
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/1457321
Title:
lxc-stop does not shut down container
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Vivid:
Fix Released
Status in systemd source package in Wily:
Fix Released
Bug description:
lxc-stop sends SIGPWR to a container's pid 1 to notify it that it
should shut down. This merely starts sigpwr.target right now, but
nothing is hooked into it. That's deliberate for "real iron" systems
as there it's usually UPSes sending that, which should be handled by
e. g. nut, not directly systemd. However, for containers I believe
that's a safe default.
For the record, in upstart we had /etc/init/shutdown.conf . This is
wrong, as it breaks UPS responders like nut (and it also halts instead
of poweroff). But we should provide this for containers under systemd.
https://lists.linuxcontainers.org/pipermail/lxc-
users/2015-May/009279.html
SRU TEST CASE:
--------------
- Create a vivid LXC container (system or unprivileged)
- Try to lxc-stop it. With current vivid it will do nothing/hang, with the proposed version it will shut down as expected.
REGRESSION POTENTIAL:
---------------------
- This new unit is only active in containers (LXC, docker, nspawn, etc.). There a possible regression is that someone is running/testing nut or a similar UPS responder in a container, but that seems like a theoretical scenario only.
- There is no change for VMs or "real" hardware.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1457321/+subscriptions
More information about the foundations-bugs
mailing list