Public bug reported:
Steps to reproduce:
1. On Wily, "lxd-images import ubuntu --alias xenial --stream daily xenial
amd64" (lxd is 0.20-0ubuntu4.1 on the host, but I don't think that matters for
this bug).
2. Start a container using "lxc launch xenial test"
3. Enter the container with "lxc exec test -- login -f ubuntu"
4. "sudo apt-get update && sudo apt-get dist-upgrade" (this will run inside the
container). This wants to bump "dbus gettext-base klibc-utils libasprintf0v5
libdbus-1-3 libedit2 libgcc1 libklibc libpam-systemd libparted2 libseccomp2
libsystemd0 libudev1 lxd lxd-client parted sed systemd systemd-sysv udev" and
install new package gcc-6-base.
Expected result: success
Actual result:
Setting up lxd (2.0.0~beta2-0ubuntu1) ...
Job for lxd.service failed because a timeout was exceeded. See "systemctl
status lxd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript lxd, action "start" failed.
dpkg: error processing package lxd (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up lxd-client (2.0.0~beta2-0ubuntu1) ...
Processing triggers for libc-bin (2.21-0ubuntu5) ...
Processing triggers for initramfs-tools (0.122ubuntu3) ...
Errors were encountered while processing:
lxd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Prior to the upgrade, lxd inside the Xenial container is on
2.0.0~beta1-0ubuntu4. The postinst takes a while to time out. During that time,
"ps axf" shows me:
835 ? Ss 0:00 login -f
874 ? S 0:00 \_ -bash
1560 ? S+ 0:00 \_ sudo apt-get dist-upgrade
1565 ? S+ 0:00 \_ apt-get dist-upgrade
5225 pts/0 Ss+ 0:00 \_ /usr/bin/dpkg --status-fd 27
--configure libdbus-1-3:amd64 dbu
5428 pts/0 S+ 0:00 \_ /bin/sh
/var/lib/dpkg/info/lxd.postinst configure 2.0.0~be
5471 pts/0 S+ 0:00 \_ /bin/sh
/usr/sbin/invoke-rc.d lxd start
5510 pts/0 S+ 0:00 \_ systemctl start
lxd.service
5511 pts/0 S+ 0:00 \_
/bin/systemd-tty-ask-password-agent --watch
5512 pts/0 Sl+ 0:00 \_ /usr/bin/pkttyagent
--notify-fd 4 --fallback
I pulled the Xenial image today.
$ lxc image info xenial # on host
Fingerprint: a6a30ca718d789e8769346c23296023dba9d86e1fbc914fc0e2155ccdb7d3e6f
Size: 143.33MB
Architecture: x86_64
Public: no
Timestamps:
Created: 2016/02/11 04:34 UTC
Uploaded: 2016/02/12 13:22 UTC
Expires: never
Properties:
architecture: x86_64
description: Ubuntu 16.04 LTS server (20160211)
os: ubuntu
release: xenial
Aliases:
- xenial
$ systemctl status lxd.service # in container, after postinst failure
● lxd.service - Container hypervisor based on LXC
Loaded: loaded (/lib/systemd/system/lxd.service; indirect; vendor preset:
enabled)
Active: activating (start-post) (Result: exit-code) since Fri 2016-02-12
15:01:39 UTC; 27s ago
Process: 5754 ExecStart=/usr/bin/lxd --group lxd
--logfile=/var/log/lxd/lxd.log (code=exited, status=1/FAILURE)
Main PID: 5754 (code=exited, status=1/FAILURE); : 5755 (lxd)
Feb 12 15:01:39 test systemd[1]: Starting Container hypervisor based on LXC...
Feb 12 15:01:39 test lxd[5754]: t=2016-02-12T15:01:39+0000 lvl=warn
msg="Per-container AppArmor profiles are disabled because the mac_admin
capability is missing."
Feb 12 15:01:39 test lxd[5754]: t=2016-02-12T15:01:39+0000 lvl=warn
msg="Per-container AppArmor profiles are disabled because LXD is already
protected by AppArmor."
Feb 12 15:01:39 test lxd[5754]: t=2016-02-12T15:01:39+0000 lvl=warn msg="CGroup
memory swap accounting is disabled, swap limits will be ignored."
Feb 12 15:01:39 test lxd[5754]: error: permission denied
Feb 12 15:01:39 test systemd[1]: lxd.service: Main process exited, code=exited,
status=1/FAILURE
If this bug is valid, then can I suggest that this use case be added to CI? I
feel that it's a common use case for Ubuntu devs.
** Affects: lxd (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "journalctl.log"
https://bugs.launchpad.net/bugs/1545017/+attachment/4570104/+files/journalctl.log
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1545017
Title:
dist-upgrading xenial hangs in lxd.postinst
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1545017/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs