[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-06 Thread Launchpad Bug Tracker
This bug was fixed in the package lxc - 0.9.0-0ubuntu17 --- lxc (0.9.0-0ubuntu17) saucy; urgency=low * 0011-cgroup-hook-handle-stricter-kernel: fix the mountcgroups hook in the face of new restrictions imposed by the kernel on devices cgroups. (LP: #1196518) -- Serge

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-05 Thread Serge Hallyn
** Changed in: lxc (Ubuntu) Status: Incomplete = Triaged -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1196518 Title: lxc-start failed with lxc_cgroup - Invalid argument -

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-05 Thread Serge Hallyn
I'll post a patch to be less stringent about that check. ** Changed in: linux (Ubuntu) Importance: Undecided = Medium ** Changed in: linux (Ubuntu) Status: Incomplete = Triaged -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-05 Thread Serge Hallyn
Ah, wait - the simpler solution would be for the mountcgroup hook to set the device cgroup accesses (per the container config) before creating ${container}.real. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-05 Thread Serge Hallyn
** No longer affects: linux (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1196518 Title: lxc-start failed with lxc_cgroup - Invalid argument - write

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-05 Thread Serge Hallyn
I'm testing this patch to solve the issue. So far it works on my simplest case. I will run the lxc testsuite to check for some regressions. ** Attachment added: 0011-cgroup-hook-handle-stricter-kernel

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-05 Thread Serge Hallyn
** Changed in: lxc (Ubuntu) Assignee: (unassigned) = Serge Hallyn (serge-hallyn) ** Changed in: lxc (Ubuntu) Status: Triaged = In Progress -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-04 Thread Jean-Baptiste Lallement
I'm reopening because I can reproduce it on different hardware, but it doesn't fail when running the same command twice and it seems a bit racy. I'm searching for a way to reliably reproduce that problem. ** Changed in: lxc (Ubuntu) Status: Invalid = Confirmed ** Changed in: lxc (Ubuntu)

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-04 Thread Jean-Baptiste Lallement
This is reproducible on several systems, but only the 1rst time I start a container when /sys/fs/cgroup/devices/lxc/NAME/ doesn't already exist. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-04 Thread Jean-Baptiste Lallement
apport information ** Tags added: apparmor apport-collected ** Description changed: With kernel 3.10.0 lxc-create fails with the following error: lxc-start 1372673552.852 NOTICE lxc_conf - 'saucy-i386-20130701-1012' is setup. lxc-start 1372673552.852 DEBUGlxc_cgroup -

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-04 Thread Jean-Baptiste Lallement
With otto from lp:otto I can reproduce the problem with the command: $ sudo ./bin/otto -d create -u lp1196518-$RANDOM ~/iso/ubuntu/saucy-desktop-amd64.iso The write(fd, value, strlen(value)) in do_cgroup_set in cgroup.c fails with Invalid Argument If the command is executed a second time with

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-04 Thread Jean-Baptiste Lallement
For the moment, the workaround is to remove lxc.cgroup.devices.deny from the config file, which is okay in our case since the machines are just test hosts, but is not in the general case. ** Also affects: linux (Ubuntu) Importance: Undecided Status: New ** Tags added: bot-stop-nagging

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-04 Thread Jean-Baptiste Lallement
apport information ** Description changed: With kernel 3.10.0 lxc-create fails with the following error: lxc-start 1372673552.852 NOTICE lxc_conf - 'saucy-i386-20130701-1012' is setup. lxc-start 1372673552.852 DEBUGlxc_cgroup - cgroup_path_get: called for subsys devices

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-04 Thread Jean-Baptiste Lallement
Here is a minimal test case to reproduce the problem: NAME=test-deny-${RANDOM} echo lxc.hook.mount = /usr/share/lxc/hooks/mountcgroups /tmp/${NAME}.lxc lxc-create -t ubuntu -n $NAME -f /tmp/${NAME}.lxc -- -r saucy lxc-start -n $NAME From what I understand, setting devices.deny or .allow = a is

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-03 Thread Serge Hallyn
Marking invalid as I couldn't reproduce, and IIUC you will re-try with fresh containers. If you run into this again, please re-mark it new and do a 'apport- collect 1196518'. ** Changed in: lxc (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-01 Thread Jean-Baptiste Lallement
** Attachment added: fstab https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1196518/+attachment/3720321/+files/fstab -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1196518 Title:

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-01 Thread Jean-Baptiste Lallement
** Attachment added: pre-mount.sh https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1196518/+attachment/3720323/+files/pre-mount.sh -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-01 Thread Jean-Baptiste Lallement
** Attachment added: config https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1196518/+attachment/3720320/+files/config -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1196518 Title:

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-01 Thread Jean-Baptiste Lallement
** Attachment added: post-stop.sh https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1196518/+attachment/3720322/+files/post-stop.sh -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-01 Thread Jean-Baptiste Lallement
** Attachment added: saucy-i386-20130701-1012.log.broken https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1196518/+attachment/3720325/+files/saucy-i386-20130701-1012.log.broken -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-01 Thread Jean-Baptiste Lallement
** Attachment added: pre-start.sh https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1196518/+attachment/3720324/+files/pre-start.sh -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1196518] Re: lxc-start failed with lxc_cgroup - Invalid argument - write /sys/fs/cgroup/devices/lxc/NAME/devices.deny : Invalid argument with kernel 3.10

2013-07-01 Thread Serge Hallyn
** Changed in: lxc (Ubuntu) Importance: Undecided = High -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1196518 Title: lxc-start failed with lxc_cgroup - Invalid argument - write