Containers are stopped during lxc package upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Starting in Ubuntu 15.04, while using systemd as init, running containers are being stopped when an lxc package upgrade occurs. In older Ubuntu releases, running containers are still up after lxc package upgrades.
Serge reports that a simple `apt-get install --reinstall lxc` will reproduce this bug.
Here's another reproducer where I did a no change rebuild of lxc 1.1.2-0ubuntu3 as 1.1.2-0ubuntu4~
tyhicks@
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
-------
somename RUNNING 10.0.3.135 - - NO
tyhicks@
somename
tyhicks@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
liblxc1 python3-lxc
Suggested packages:
btrfs-tools lvm2 lxctl qemu-user-static
The following packages will be upgraded:
liblxc1 lxc lxc-templates python3-lxc
4 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/781 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
python3-lxc lxc-templates liblxc1 lxc
Install these packages without verification? [y/N] y
(Reading database ... 217273 files and directories currently installed.)
Preparing to unpack .../python3-
Unpacking python3-lxc (1.1.2-
Preparing to unpack .../lxc-
Unpacking lxc-templates (1.1.2-
Preparing to unpack .../liblxc1_
Unpacking liblxc1 (1.1.2-
Preparing to unpack .../lxc_
Unpacking lxc (1.1.2-
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up liblxc1 (1.1.2-
Setting up python3-lxc (1.1.2-
Setting up lxc (1.1.2-
Setting up lxc dnsmasq configuration.
Setting up lxc-templates (1.1.2-
Processing triggers for libc-bin (2.21-0ubuntu4) ...
tyhicks@
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
-------
somename STOPPED - - - NO
tyhicks@
lxc-attach: attach.c: lxc_attach: 632 failed to get the init pid
tags: | added: patch |
This bug was fixed in the package lxc - 1.1.2-0ubuntu5
---------------
lxc (1.1.2-0ubuntu5) wily; urgency=medium
* debian/rules: call dh_systemd_start --no-restart- on-upgrade (LP: #1476691)
-- Serge Hallyn <email address hidden> Thu, 23 Jul 2015 09:35:12 -0500