touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #91279
[Bug 1476691] [NEW] Containers are stopped during lxc package upgrade
Public bug reported:
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~nochange1:
tyhicks@sec-vivid-amd64:~$ sudo lxc-ls -f
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
------------------------------------------------------
somename RUNNING 10.0.3.135 - - NO
tyhicks@sec-vivid-amd64:~$ sudo lxc-attach -n somename -- hostname
somename
tyhicks@sec-vivid-amd64:~$ sudo apt-get install lxc lxc-templates
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-lxc_1.1.2-0ubuntu4~nochange1_amd64.deb ...
Unpacking python3-lxc (1.1.2-0ubuntu4~nochange1) over (1.1.2-0ubuntu3) ...
Preparing to unpack .../lxc-templates_1.1.2-0ubuntu4~nochange1_amd64.deb ...
Unpacking lxc-templates (1.1.2-0ubuntu4~nochange1) over (1.1.2-0ubuntu3) ...
Preparing to unpack .../liblxc1_1.1.2-0ubuntu4~nochange1_amd64.deb ...
Unpacking liblxc1 (1.1.2-0ubuntu4~nochange1) over (1.1.2-0ubuntu3) ...
Preparing to unpack .../lxc_1.1.2-0ubuntu4~nochange1_amd64.deb ...
Unpacking lxc (1.1.2-0ubuntu4~nochange1) over (1.1.2-0ubuntu3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up liblxc1 (1.1.2-0ubuntu4~nochange1) ...
Setting up python3-lxc (1.1.2-0ubuntu4~nochange1) ...
Setting up lxc (1.1.2-0ubuntu4~nochange1) ...
Setting up lxc dnsmasq configuration.
Setting up lxc-templates (1.1.2-0ubuntu4~nochange1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
tyhicks@sec-vivid-amd64:~$ sudo lxc-ls -f
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
------------------------------------------------
somename STOPPED - - - NO
tyhicks@sec-vivid-amd64:~$ sudo lxc-attach -n somename -- hostname
lxc-attach: attach.c: lxc_attach: 632 failed to get the init pid
** Affects: lxc (Ubuntu)
Importance: High
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1476691
Title:
Containers are stopped during lxc package upgrade
Status in lxc package in Ubuntu:
Confirmed
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~nochange1:
tyhicks@sec-vivid-amd64:~$ sudo lxc-ls -f
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
------------------------------------------------------
somename RUNNING 10.0.3.135 - - NO
tyhicks@sec-vivid-amd64:~$ sudo lxc-attach -n somename -- hostname
somename
tyhicks@sec-vivid-amd64:~$ sudo apt-get install lxc lxc-templates
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-lxc_1.1.2-0ubuntu4~nochange1_amd64.deb ...
Unpacking python3-lxc (1.1.2-0ubuntu4~nochange1) over (1.1.2-0ubuntu3) ...
Preparing to unpack .../lxc-templates_1.1.2-0ubuntu4~nochange1_amd64.deb ...
Unpacking lxc-templates (1.1.2-0ubuntu4~nochange1) over (1.1.2-0ubuntu3) ...
Preparing to unpack .../liblxc1_1.1.2-0ubuntu4~nochange1_amd64.deb ...
Unpacking liblxc1 (1.1.2-0ubuntu4~nochange1) over (1.1.2-0ubuntu3) ...
Preparing to unpack .../lxc_1.1.2-0ubuntu4~nochange1_amd64.deb ...
Unpacking lxc (1.1.2-0ubuntu4~nochange1) over (1.1.2-0ubuntu3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up liblxc1 (1.1.2-0ubuntu4~nochange1) ...
Setting up python3-lxc (1.1.2-0ubuntu4~nochange1) ...
Setting up lxc (1.1.2-0ubuntu4~nochange1) ...
Setting up lxc dnsmasq configuration.
Setting up lxc-templates (1.1.2-0ubuntu4~nochange1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
tyhicks@sec-vivid-amd64:~$ sudo lxc-ls -f
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
------------------------------------------------
somename STOPPED - - - NO
tyhicks@sec-vivid-amd64:~$ sudo lxc-attach -n somename -- hostname
lxc-attach: attach.c: lxc_attach: 632 failed to get the init pid
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1476691/+subscriptions
Follow ups