[lxc-users] Can't start container after lxd/lxc/lxcfs upgrade

Fajar A. Nugraha list at fajar.net
Sat Mar 19 00:53:38 UTC 2016


On Sat, Mar 19, 2016 at 7:07 AM, Stéphane Graber <stgraber at ubuntu.com> wrote:
> On Sat, Mar 19, 2016 at 05:47:19AM +0700, Fajar A. Nugraha wrote:
>> On Sat, Mar 19, 2016 at 1:12 AM, B G <bg85305 at gmail.com> wrote:
>> > lxc => 2.0.0rc4
>> > lxd => 2.0.0rc4
>> > lxcfs => 2.0.0rc6
>> >
>> > After the latest upgrade to lxc/lxd tools existing and new containers fail
>> > to start, failing on the following stage from the container log:
>> >
>> > lxc 20160318161829.810 INFO     lxc_conf - conf.c:run_script_argv:367 -
>> > Executing script '/usr/share/lxcfs/lxc.mount.hook' for container
>> > 'testcontainer-20160311-0918', config section 'lxc'
>> > lxc 20160318161829.856 ERROR    lxc_conf - conf.c:run_buffer:347 - Script
>> > exited with status 1



>> + ls -la /usr/lib/x86_64-linux-gnu/lxc/sys/fs/cgroup
>> total 0
>> drwxr-xr-x 12 root root 240 Mar 18 16:25 .
>> drwxr-xr-x  7 root root   0 Mar 18 16:15 ..
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 blkio
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 cpu
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 cpuset
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 devices
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 freezer
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 hugetlb
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 memory
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 net_cls
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 perf_event
>> drwxr-xr-x  3 root root  60 Mar 18 16:25 systemd
>
> Can you also extract /proc/self/mountinfo at that time please?

Attached. I also added "cat /proc/self/cgroup" and "ls -la
/sys/fs/cgroup" in case its needed.

This is from starting a container "t" while another container ("r") is
already running.

> It indeed looks like the change to add cgroup and cgroup-full
> lxc.mount.auto support into cgfsng with rc11 is causing some trouble.
>
> I'll need to setup a machine where I can reproduce this as none of my
> systems are running into this, presumably because they all have cgns
> kernels.

ubuntu 15.10, kernel 4.2.0-34-generic, zfs-dkms 0.6.5.5-1~wily, latest
lxc-related-packages from lxd-stable ppa.

-- 
Fajar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lxcfs-mount-debug.log.gz
Type: application/x-gzip
Size: 2831 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160319/60b06fb2/attachment.bin>


More information about the lxc-users mailing list