Public bug reported: 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.
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. ** Affects: systemd (Ubuntu) Importance: Medium Assignee: Martin Pitt (pitti) Status: In Progress ** Affects: systemd (Ubuntu Vivid) Importance: Medium Status: New ** Affects: systemd (Ubuntu Wily) Importance: Medium Assignee: Martin Pitt (pitti) Status: In Progress ** Tags: systemd-boot ** Also affects: systemd (Ubuntu Wily) Importance: Undecided Status: New ** Also affects: systemd (Ubuntu Vivid) Importance: Undecided Status: New ** Tags added: systemd-boot ** Changed in: systemd (Ubuntu Wily) Importance: Undecided => Medium ** Changed in: systemd (Ubuntu Vivid) Importance: Undecided => Medium ** Description changed: 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. 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. ** Changed in: systemd (Ubuntu Wily) Status: New => In Progress ** Changed in: systemd (Ubuntu Wily) Assignee: (unassigned) => Martin Pitt (pitti) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1457321 Title: lxc-stop does not shut down container To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1457321/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs