Re: [lxc-devel] [PATCH] download: Initial template

2014-01-10 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > This adds a new template called "download". It's a fairly simple > template with a minimal set of dependency which will grab any pre-built > image available on https://images.linuxcontainers.org > Note that the serverside is still work in progress (m

[lxc-devel] [PATCH 1/1] cgroup: recursively delete cgroups when asked

2014-01-10 Thread Serge Hallyn
Currently when a container is shut down, lxc walks the set of all cgroup paths it created, in reverse order, and tries to remove them. This doesn't suffice if the container has also created new cgroups. It'd be impolite to recursively remove all the cgroup paths we created, since this can include

Re: [lxc-devel] Last minute template addition - universal image based template

2014-01-10 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Sat, Jan 11, 2014 at 12:18:12AM -0500, S.Çağlar Onur wrote: > > Hey Stéphane, > > > > On Fri, Jan 10, 2014 at 3:10 PM, Stéphane Graber > > wrote: > > > Hey everyone, > > > > > > First of all, sorry for coming up with that so late in the 1.0 > >

Re: [lxc-devel] Last minute template addition - universal image based template

2014-01-10 Thread Stéphane Graber
On Sat, Jan 11, 2014 at 12:18:12AM -0500, S.Çağlar Onur wrote: > Hey Stéphane, > > On Fri, Jan 10, 2014 at 3:10 PM, Stéphane Graber wrote: > > Hey everyone, > > > > First of all, sorry for coming up with that so late in the 1.0 > > development cycle. I tried to convince myself for a long time tha

Re: [lxc-devel] Last minute template addition - universal image based template

2014-01-10 Thread S . Çağlar Onur
Hey Stéphane, On Fri, Jan 10, 2014 at 3:10 PM, Stéphane Graber wrote: > Hey everyone, > > First of all, sorry for coming up with that so late in the 1.0 > development cycle. I tried to convince myself for a long time that this > wasn't necessary but reality is that with unprivileged containers, w

[lxc-devel] [lxc/lxc] cd43d2: Fix bug in preserve_ns

2014-01-10 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: cd43d2d1b989f8ef292151d795c51e96df1cf903 https://github.com/lxc/lxc/commit/cd43d2d1b989f8ef292151d795c51e96df1cf903 Author: Serge Hallyn Date: 2014-01-10 (Fri, 10 Jan 2014) Changed paths: M src/lxc/start.

Re: [lxc-devel] [PATCH 1/1] Fix bug in preserve_ns

2014-01-10 Thread Stéphane Graber
On Fri, Jan 10, 2014 at 09:48:30PM -0600, Serge Hallyn wrote: > If /proc/self/ns does not exist, then preserve_ns was failing to > initialize the saved_ns[i] to -1. This caused attach_ns() to try > and attach, and of course fail. > > Initialize the saved ns values before returning an error. > >

[lxc-devel] [PATCH] download: Initial template

2014-01-10 Thread Stéphane Graber
This adds a new template called "download". It's a fairly simple template with a minimal set of dependency which will grab any pre-built image available on https://images.linuxcontainers.org Note that the serverside is still work in progress (missing SSL support). Access is done over https by defa

[lxc-devel] [PATCH 1/1] Fix bug in preserve_ns

2014-01-10 Thread Serge Hallyn
If /proc/self/ns does not exist, then preserve_ns was failing to initialize the saved_ns[i] to -1. This caused attach_ns() to try and attach, and of course fail. Initialize the saved ns values before returning an error. The return values of preserve_ns and attach_ns were also being ignored. Hon

Re: [lxc-devel] [PATCH] ensure all config items are duplicated on clone/write_config

2014-01-10 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Fri, Jan 10, 2014 at 04:59:31PM -0600, Serge Hallyn wrote: > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > Since previously I had found a config item that wasn't being propagated > > > by lxc-clone, I went through all the config items an

Re: [lxc-devel] [PATCH] One more rename of the system options

2014-01-10 Thread Stéphane Graber
On Fri, Jan 10, 2014 at 04:57:16PM -0600, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > This should be the last change of name for those options. This change > > basically move them all to lxc.bdev... > > > > Signed-off-by: Stéphane Graber > > Acked-by: Serge E. Hallyn

Re: [lxc-devel] [PATCH] ensure all config items are duplicated on clone/write_config

2014-01-10 Thread Stéphane Graber
On Fri, Jan 10, 2014 at 04:59:31PM -0600, Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > Since previously I had found a config item that wasn't being propagated > > by lxc-clone, I went through all the config items and made sure that: > > a) Each item is documented in lx

Re: [lxc-devel] [PATCH] ensure all config items are duplicated on clone/write_config

2014-01-10 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > Since previously I had found a config item that wasn't being propagated > by lxc-clone, I went through all the config items and made sure that: > a) Each item is documented in lxc.conf > b) Each item is written out by write_config > > The only on

Re: [lxc-devel] [PATCH] One more rename of the system options

2014-01-10 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > This should be the last change of name for those options. This change > basically move them all to lxc.bdev... > > Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn Though what is this going to do to people like me who already have things

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread Serge Hallyn
Quoting John Peacock (jpeac...@messagesystems.com): > On Fri, 2014-01-10 at 15:22 -0500, S.Çağlar Onur wrote: > > [caglar@qp:~] sudo btrfs subvolume list / > > ID 256 gen 67922 top level 5 path @ > > ID 258 gen 67913 top level 5 path @home > > ID 320 gen 67922 top level 256 path var/lib/lxc/origina

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Fri, Jan 10, 2014 at 01:54:40PM -0500, S.Çağlar Onur wrote: > > Hey Stéphane, > > > > On Fri, Jan 10, 2014 at 11:03 AM, Stéphane Graber > > wrote: > > > Hey everyone, > > > > > > Just wanted to give you a quick update on the release plan for LX

Re: [lxc-devel] Last minute template addition - universal image based template

2014-01-10 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > Hey everyone, > > First of all, sorry for coming up with that so late in the 1.0 > development cycle. I tried to convince myself for a long time that this > wasn't necessary but reality is that with unprivileged containers, we > need to start thinki

Re: [lxc-devel] Last minute template addition - universal image based template

2014-01-10 Thread Stéphane Graber
On Fri, Jan 10, 2014 at 04:16:18PM -0500, Leonid Isaev wrote: > Hi, > > I have a few questions about this... sorry if they are uneducated. > > On Fri, 10 Jan 2014 15:10:14 -0500 > Stéphane Graber wrote: > > > Hey everyone, > > > > First of all, sorry for coming up with that so late in th

Re: [lxc-devel] Last minute template addition - universal image based template

2014-01-10 Thread Leonid Isaev
Hi, I have a few questions about this... sorry if they are uneducated. On Fri, 10 Jan 2014 15:10:14 -0500 Stéphane Graber wrote: > Hey everyone, > > First of all, sorry for coming up with that so late in the 1.0 > development cycle. I tried to convince myself for a long time that this

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread John Peacock
On Fri, 2014-01-10 at 15:22 -0500, S.Çağlar Onur wrote: > [caglar@qp:~] sudo btrfs subvolume list / > ID 256 gen 67922 top level 5 path @ > ID 258 gen 67913 top level 5 path @home > ID 320 gen 67922 top level 256 path var/lib/lxc/original/rootfs > > So it looks like it works (but as you saud uses

[lxc-devel] [PATCH] One more rename of the system options

2014-01-10 Thread Stéphane Graber
This should be the last change of name for those options. This change basically move them all to lxc.bdev... Signed-off-by: Stéphane Graber --- src/lxc/bdev.c | 12 ++-- src/lxc/lxc.functions.in | 4 ++-- src/lxc/lxc_config.c | 6 +++--- src/lxc/utils.c | 14

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread S . Çağlar Onur
Hey John, On Fri, Jan 10, 2014 at 3:06 PM, John Peacock wrote: > On Fri, 2014-01-10 at 12:42 -0600, Serge Hallyn wrote: >> > I may be totally biased, but I believe that the bug I just entered: >> > >> > https://github.com/lxc/lxc/issues/131 >> > >> > should be a blocker for rc1. Restoring snap

[lxc-devel] Last minute template addition - universal image based template

2014-01-10 Thread Stéphane Graber
Hey everyone, First of all, sorry for coming up with that so late in the 1.0 development cycle. I tried to convince myself for a long time that this wasn't necessary but reality is that with unprivileged containers, we need to start thinking about new ways to let our users create containers. So b

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread John Peacock
On Fri, 2014-01-10 at 12:42 -0600, Serge Hallyn wrote: > > I may be totally biased, but I believe that the bug I just entered: > > > > https://github.com/lxc/lxc/issues/131 > > > > should be a blocker for rc1. Restoring snapshots is impossible on btrfs > > Not if your rootfs is btrfs though,

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread Stéphane Graber
On Fri, Jan 10, 2014 at 01:54:40PM -0500, S.Çağlar Onur wrote: > Hey Stéphane, > > On Fri, Jan 10, 2014 at 11:03 AM, Stéphane Graber wrote: > > Hey everyone, > > > > Just wanted to give you a quick update on the release plan for LXC 1.0. > > > > The next milestone will be LXC 1.0 rc1 which I plan

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread S . Çağlar Onur
Hey Stéphane, On Fri, Jan 10, 2014 at 11:03 AM, Stéphane Graber wrote: > Hey everyone, > > Just wanted to give you a quick update on the release plan for LXC 1.0. > > The next milestone will be LXC 1.0 rc1 which I plan on releasing early > next week (Tuesday is my plan for now), after that I plan

Re: [lxc-devel] "pre-start" hooks and avahi

2014-01-10 Thread Serge Hallyn
Avahi sets its own rlimit_nproc to be exactly the # tasks it will spawn as its userid. If the avahi user in the container is the same uid # as something in use on the host, then there may already be running tasks and so rlimit_nproc is enforced and avahi can't run. If you use a user namespace thi

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread Serge Hallyn
Quoting John Peacock (jpeac...@messagesystems.com): > On Fri, 2014-01-10 at 11:03 -0500, Stéphane Graber wrote: > > The remainder of the time should be used to: > > - Fix bugs (https://github.com/lxc/lxc/issues?milestone=none&state=open) > > I may be totally biased, but I believe that the bug I j

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread John Peacock
On Fri, 2014-01-10 at 11:03 -0500, Stéphane Graber wrote: > Please reply to this e-mail if you are working on any feature change > which you want to see included in LXC 1.0. On this topic, I hope to be able to provide a patch to create an lxcpath-snaps config setting so that something other than $

Re: [lxc-devel] Next few milestones for 1.0

2014-01-10 Thread John Peacock
On Fri, 2014-01-10 at 11:03 -0500, Stéphane Graber wrote: > The remainder of the time should be used to: > - Fix bugs (https://github.com/lxc/lxc/issues?milestone=none&state=open) I may be totally biased, but I believe that the bug I just entered: https://github.com/lxc/lxc/issues/131 should

[lxc-devel] "pre-start" hooks and avahi

2014-01-10 Thread Chris Glass
Hi all, I'm currently hacking on a pre-start hook for the ubuntu and ubuntu-cloud templates that automatically makes ubuntu containers aware of squid-deb-proxy servers the host knows about. For this, I assume the squid-deb-proxy-client package is installed on the host. If you're not familiar with

Re: [lxc-devel] RFC: cgroups aware proc

2014-01-10 Thread Marian Marinov
On 01/08/2014 05:27 PM, Serge Hallyn wrote: Quoting Marian Marinov (m...@yuhu.biz): On 01/07/2014 01:17 PM, Li Zefan wrote: On 2014/1/5 8:12, Marian Marinov wrote: Happy new year guys. I need to have /proc cgroups aware, as I want to have LXC containers that see only the resources that are g

[lxc-devel] [lxc/lxc] 2b425d: Rename all lxc.conf options to lxc.

2014-01-10 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 2b425d512a6637335c7a3d3b687ce115107f041b https://github.com/lxc/lxc/commit/2b425d512a6637335c7a3d3b687ce115107f041b Author: Stéphane Graber Date: 2014-01-10 (Fri, 10 Jan 2014) Changed paths: M src/lxc/lxc

[lxc-devel] Next few milestones for 1.0

2014-01-10 Thread Stéphane Graber
Hey everyone, Just wanted to give you a quick update on the release plan for LXC 1.0. The next milestone will be LXC 1.0 rc1 which I plan on releasing early next week (Tuesday is my plan for now), after that I plan on doing at least one rc release per week until the final release of LXC 1.0. The

Re: [lxc-devel] Question on lxc-snapshot directory

2014-01-10 Thread John Peacock
On Fri, 2014-01-10 at 00:10 -0600, Serge Hallyn wrote: > > smart enough to ignore hidden directories)? Alternatively, the snapshot > > folder could alternatively be rootfs.snap under the container folder > > That might be ok, but not named 'rootfs.snap' since rootfs implies it's > not a collectio

Re: [lxc-devel] [PATCH 1/4] Rename all lxc.conf options to lxc.

2014-01-10 Thread Stéphane Graber
On Thu, Jan 09, 2014 at 11:55:13PM -0600, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > This is a first step in bringing the lxc.conf configfile in line with > > the container's format. > > > > Signed-off-by: Stéphane Graber > > Acked-by: Serge E. Hallyn > > but I di