[lxc-devel] [lxc/lxc] 00ec33: pin_rootfs: be quiet and don't fail container star...

2013-09-10 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: 00ec333b2e6c7a29e99da196979a496fb05ee923 https://github.com/lxc/lxc/commit/00ec333b2e6c7a29e99da196979a496fb05ee923 Author: Serge Hallyn Date: 2013-09-10 (Tue, 10 Sep 2013) Changed paths: M src/lxc/conf.

Re: [lxc-devel] [RFC] [PATCH 0/6] Major cgroup logic rewrite

2013-09-10 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > Hi Serge, > > > Thanks, Christian. I did need the trivial white-space-damaged patch below, > > but > > with that it built and ran for me, both with %n and default (/lxc/%n) > > patterns. > > This was in a nested container, I haven't tested at hos

Re: [lxc-devel] [PATCH 1/2] API support for container snapshots (v2)

2013-09-10 Thread Stéphane Graber
On Fri, Sep 06, 2013 at 06:07:47PM -0500, Serge Hallyn wrote: > The api allows for creating, listing, and restoring of container > snapshots. Snapshots are created as snapshot clones of the > original container - i.e. btrfs and lvm will be done as snapshot, > a directory-backed container will have

[lxc-devel] [GIT] lxc branch, master, updated. 4213373fe5bb5d03d3e0a212a0ef9784b644f162

2013-09-10 Thread Daniel Lezcano
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "lxc". The branch, master has been updated via 4213373fe5bb5d03d3e0a212a0ef9784b644f162 (commit) from be9f766c1ef1c74cb7cdfca9

[lxc-devel] [GIT] lxc tag, lxc-1.0.0.alpha1, created. 4213373fe5bb5d03d3e0a212a0ef9784b644f162

2013-09-10 Thread Daniel Lezcano
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "lxc". The tag, lxc-1.0.0.alpha1 has been created at 4213373fe5bb5d03d3e0a212a0ef9784b644f162 (commit) - Log --

[lxc-devel] patch for the opensuse template

2013-09-10 Thread Cedric Bosdonnat
Hello, Here is a patch fixing the shutdown of opensuse containers. The fix is described at https://wiki.archlinux.org/index.php/Linux_Containers#Container_cannot_be_shutdown_if_using_systemd Note, I tried to submit the patch on SF.net, but couldn't find any way to do that. I hope submitting on t

Re: [lxc-devel] [PATCH 1/1] error.c: don't return error if container init signaled

2013-09-10 Thread Stéphane Graber
On Mon, Sep 09, 2013 at 03:35:52PM -0500, Serge Hallyn wrote: > We log that at INFO level in case it is needed. However, in a modern > kernel a container which was shut down using 'shutdown' will always > have been signaled with SIGINT. Making lxc-start return an error to > reflect that seems ove

[lxc-devel] [lxc/lxc] 3981d9: cgroup: Major rewrite of cgroup logic

2013-09-10 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: 3981d96ea304ed7955d417cd97bb91704fc9de6d https://github.com/lxc/lxc/commit/3981d96ea304ed7955d417cd97bb91704fc9de6d Author: Christian Seiler Date: 2013-09-10 (Tue, 10 Sep 2013) Changed paths: M src/lxc/a

Re: [lxc-devel] [PATCH 6/6] cgroup: Major rewrite of cgroup logic

2013-09-10 Thread Christian Seiler
Hi Serge, Thanks for testing / reviewing! > I'd like to just get rid of mountcgroups and make this a > configurable option straight in lxc, which when set will cause lxc, > for every mountpoint which is in handler->cgroup, bind-mount the > the container init's directory into the container. The q

[lxc-devel] [lxc/lxc]

2013-09-10 Thread GitHub
Branch: refs/heads/upstream-master1 Home: https://github.com/lxc/lxc -- How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and

[lxc-devel] [lxc/lxc]

2013-09-10 Thread GitHub
Branch: refs/heads/upstream-master1 Home: https://github.com/lxc/lxc -- How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and

[lxc-devel] [PATCH] apparmor.c: drop newline when reading current profile

2013-09-10 Thread Serge Hallyn
Otherwise we fail to recognize if we are already unconfined. Then, if we want to *start* unconfined, and /proc is readonly, start fails even though it should be able to proceed. With this patch, that situation works. Signed-off-by: Serge Hallyn Reported-by: Andre nathan --- src/lxc/apparmor.c

Re: [lxc-devel] [lxc/lxc] be9f76: Merge git://github.com/lxc/lxc

2013-09-10 Thread Stéphane Graber
For anyone wondering, that's me rebasing staging on master. Anyone with a local checkout of staging that's fairly up to date will have to use --force next time they update. On Tue, Sep 10, 2013 at 03:20:16PM -0700, GitHub wrote: > Branch: refs/heads/staging > Home: https://github.com/lxc/lx

Re: [lxc-devel] [PATCH 6/6] cgroup: Major rewrite of cgroup logic

2013-09-10 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > Hi Serge, > > Thanks for testing / reviewing! > > > I'd like to just get rid of mountcgroups and make this a > > configurable option straight in lxc, which when set will cause lxc, > > for every mountpoint which is in handler->cgroup, bind-mount th

[lxc-devel] [lxc/lxc] be9f76: Merge git://github.com/lxc/lxc

2013-09-10 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: be9f766c1ef1c74cb7cdfca97a71757b492b8a5c https://github.com/lxc/lxc/commit/be9f766c1ef1c74cb7cdfca97a71757b492b8a5c Author: Daniel Lezcano Date: 2013-09-09 (Mon, 09 Sep 2013) Changed paths: M .gitignore

Re: [lxc-devel] [PATCH 6/6] cgroup: Major rewrite of cgroup logic

2013-09-10 Thread Serge Hallyn
With the two one-liners applied this is working fine for me both on host and nested. mountcgroups is working fine with the default cgroup pattern (/lxc/%n). It doesn't work with custom ones, and I don't know how to make it work. I'd like to just get rid of mountcgroups and make this a configurab

[lxc-devel] [lxc/lxc] 3a3ead: global config: Unify parsing, add additional check...

2013-09-10 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: 3a3ead949cc17aa66ab7696d18214eee9dcb5afb https://github.com/lxc/lxc/commit/3a3ead949cc17aa66ab7696d18214eee9dcb5afb Author: Christian Seiler Date: 2013-09-10 (Tue, 10 Sep 2013) Changed paths: M src/lxc/u

[lxc-devel] [lxc/lxc] d7063d: API support for container snapshots (v2)

2013-09-10 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: d7063dcf4926a3bff38de2f35217d66065d47e5a https://github.com/lxc/lxc/commit/d7063dcf4926a3bff38de2f35217d66065d47e5a Author: Serge Hallyn Date: 2013-09-10 (Tue, 10 Sep 2013) Changed paths: M src/lxc/lxcco

Re: [lxc-devel] patch for the opensuse template

2013-09-10 Thread Stéphane Graber
On Tue, Sep 10, 2013 at 06:00:41PM +0200, Cedric Bosdonnat wrote: > Hello, > > Here is a patch fixing the shutdown of opensuse containers. The fix is > described at > https://wiki.archlinux.org/index.php/Linux_Containers#Container_cannot_be_shutdown_if_using_systemd > > Note, I tried to submit t

Re: [lxc-devel] [PATCH 2/2] introduce lxc-snapshot

2013-09-10 Thread Stéphane Graber
On Fri, Sep 06, 2013 at 06:11:05PM -0500, Serge Hallyn wrote: > Hopefully someone else will come in and spruce it up :) This > version is as simple as can be > > lxc-snapshot -n a1 > create a snapshot of a1 > echo "second commit" > /tmp/a > lxc-snapshot -n a1 -c /tmp/a > create a snap

[lxc-devel] [lxc/lxc] 3e15e0: Fixed opensuse template to make lxc-shutdown work.

2013-09-10 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: 3e15e0d37ebcff516261d3fa1475e14ae80555e5 https://github.com/lxc/lxc/commit/3e15e0d37ebcff516261d3fa1475e14ae80555e5 Author: Cedric Bosdonnat Date: 2013-09-10 (Tue, 10 Sep 2013) Changed paths: M templates

[lxc-devel] [lxc/lxc] eef3d4: Add Japanese man pages.

2013-09-10 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: eef3d4245ff6511e4791b7cdde84bc553f7313c6 https://github.com/lxc/lxc/commit/eef3d4245ff6511e4791b7cdde84bc553f7313c6 Author: KATOH Yasufumi Date: 2013-09-05 (Thu, 05 Sep 2013) Changed paths: M configure.a

Re: [lxc-devel] [PATCH 3/6] Add fopen_cloexec function to emulate 'e' mode

2013-09-10 Thread Christian Seiler
Hi Serge, > Though the special case for calling open() without a mode arg seems > unnecessary since when called without O_CREAT, mode is supposed to be > ignored. Oh, I never looked too closely at open and I simply went with the function signatures in the manpage. Feel free to simplify that. --

Re: [lxc-devel] [PATCH 4/6] utils: Add string and array utility functions

2013-09-10 Thread Christian Seiler
Hi Serge, > However, a comment about > +/* Normalize and split path: Leading and trailing / are removed, multiple > + * / are compactified, .. and . are resolved (.. on the top level is > considered > + * identical to .). > + * Examples: > + * /-> { NULL } > + * foo/../bar

Re: [lxc-devel] [PATCH 5/6] utils: Add utility functions that write/read to entire files

2013-09-10 Thread Christian Seiler
Hi Serge, > but I notice that lxc_read_line_from_file() is not being used here > or later. The function would seem more useful if it accepted a line > number to read. Otherwise I'd suggest we drop the function. Thoughts? I thought I'd need it at some point so I added it and then I ended up not

Re: [lxc-devel] RFC: Device Namespaces

2013-09-10 Thread Amir Goldstein
On Mon, Sep 9, 2013 at 2:51 AM, Eric W. Biederman wrote: > Amir Goldstein writes: > > > On Fri, Sep 6, 2013 at 7:50 PM, Eric W. Biederman > > wrote: > > > > Hi Eric, > > > > If we can get people to take a quick look at the code before LPC > > that could make the LPC discussions more effective. >