[lxc-devel] template output

2013-07-09 Thread S . Çağlar Onur
Hi, It looks like LXC@staging started to write template outputs to stdout like following when one uses the API; [caglar@oOo:~/go/src/github.com/caglar10ur/lxc/examples] sudo ./create Creating container... Checking cache download in /var/cache/lxc/raring/rootfs-amd64 ... Copy /var/cache/lxc/raring

Re: [lxc-devel] 0.9.x versions before 1.0

2013-07-09 Thread Qiang Huang
On 2013/7/10 6:05, Dwight Engen wrote: > Hi guys, > > Just curious, has there been any thought about doing any more lxc versions > 0.9.x before lxc 1.0? Seems like a few things have accumulated since 0.9.0. > Just pulled this out of git for perspective: > > Name Commits Diffstat > 0.7.01

Re: [lxc-devel] 0.9.x versions before 1.0

2013-07-09 Thread Michael H. Warfield
On Tue, 2013-07-09 at 18:15 -0400, Stéphane Graber wrote: > On Tue, Jul 09, 2013 at 06:05:28PM -0400, Dwight Engen wrote: > > Hi guys, > > > > Just curious, has there been any thought about doing any more lxc versions > > 0.9.x before lxc 1.0? Seems like a few things have accumulated since 0.9.0.

Re: [lxc-devel] 0.9.x versions before 1.0

2013-07-09 Thread Stéphane Graber
On Tue, Jul 09, 2013 at 06:05:28PM -0400, Dwight Engen wrote: > Hi guys, > > Just curious, has there been any thought about doing any more lxc versions > 0.9.x before lxc 1.0? Seems like a few things have accumulated since 0.9.0. > Just pulled this out of git for perspective: > > Name Commits

[lxc-devel] [PATCH] fix potential out of bounds pointer deref

2013-07-09 Thread Dwight Engen
I noticed that if find_first_wholeword() is called with word at the very beginning of p, we will deref *(p - 1) to see if it is a word boundary. Fix by considering p = p0 to be a word boundary. Signed-off-by: Dwight Engen --- src/lxc/lxccontainer.c | 7 +-- 1 file changed, 5 insertions(+), 2

[lxc-devel] 0.9.x versions before 1.0

2013-07-09 Thread Dwight Engen
Hi guys, Just curious, has there been any thought about doing any more lxc versions 0.9.x before lxc 1.0? Seems like a few things have accumulated since 0.9.0. Just pulled this out of git for perspective: Name Commits Diffstat 0.7.0140 84 files changed, 4952 insertions(+), 2957 dele

Re: [lxc-devel] [PATCH v2 1/2] add clonehostname hook

2013-07-09 Thread Stéphane Graber
On Tue, Jul 09, 2013 at 04:19:45PM -0400, Dwight Engen wrote: > This hook script updates the hostname in various files under /etc in the > cloned container. In order to do so, the old container name is passed in > the LXC_SRC_NAME environment variable. > > Signed-off-by: Dwight Engen Looks good.

Re: [lxc-devel] [PATCH v2 1/2] add clonehostname hook

2013-07-09 Thread Dwight Engen
This hook script updates the hostname in various files under /etc in the cloned container. In order to do so, the old container name is passed in the LXC_SRC_NAME environment variable. Signed-off-by: Dwight Engen --- doc/lxc-clone.sgml.in | 3 ++- hooks/Makefile.am | 1 + hooks/clonehost

Re: [lxc-devel] [PATCH 1/2] add clonehostname hook

2013-07-09 Thread Dwight Engen
On Tue, 9 Jul 2013 14:56:20 -0400 Stéphane Graber wrote: > On Tue, Jul 09, 2013 at 02:44:30PM -0400, Dwight Engen wrote: > > This hook script updates the hostname in various files under /etc > > in the cloned container. In order to do so, the old container name > > is passed in the LXC_SRC_NAME e

[lxc-devel] [PATCH] lxc-fedora template - Fix retries, use os-release for release, add utsname.

2013-07-09 Thread Michael H. Warfield
Hey all! Patch for the Fedora template. Several things... 1) A month or so ago, I floated an idea of adding an option for utsname which Serge seemed to like but we let it float for more feedback (none came). 2) In private mail to Serge and Stéphane I mentioned the idea of using the CPE (Common

Re: [lxc-devel] [PATCH 2/2] oracle template: use clonehostname hook script

2013-07-09 Thread Stéphane Graber
On Tue, Jul 09, 2013 at 02:44:36PM -0400, Dwight Engen wrote: > Signed-off-by: Dwight Engen Acked-by: Stéphane Graber Please don't push until we push the final version of 1/2. > --- > templates/lxc-oracle.in | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/templates/lxc-oracle.in b/t

Re: [lxc-devel] [PATCH 1/2] add clonehostname hook

2013-07-09 Thread Stéphane Graber
On Tue, Jul 09, 2013 at 02:44:30PM -0400, Dwight Engen wrote: > This hook script updates the hostname in various files under /etc in the > cloned container. In order to do so, the old container name is passed in > the LXC_SRC_NAME environment variable. > Looks good, just a few comments below. >

[lxc-devel] [PATCH 2/2] oracle template: use clonehostname hook script

2013-07-09 Thread Dwight Engen
Signed-off-by: Dwight Engen --- templates/lxc-oracle.in | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in index b09131e..6e697b8 100644 --- a/templates/lxc-oracle.in +++ b/templates/lxc-oracle.in @@ -349,6 +349,7 @@ lxc.devttydir = lxc lxc.tty

[lxc-devel] [PATCH 1/2] add clonehostname hook

2013-07-09 Thread Dwight Engen
This hook script updates the hostname in various files under /etc in the cloned container. In order to do so, the old container name is passed in the LXC_SRC_NAME environment variable. Signed-off-by: Dwight Engen --- doc/lxc-clone.sgml.in | 3 ++- hooks/Makefile.am | 1 + hooks/clonehost

Re: [lxc-devel] Howto user namespaces?

2013-07-09 Thread Serge Hallyn
Quoting Rui Xiang (rui.xi...@huawei.com): > On 2013/7/5 19:48, Serge Hallyn wrote: > > Quoting Rui Xiang (rui.xi...@huawei.com): > >> The same issue troubles me. I try to start the container by these ways > >> in the mails, but get error results too. > >> > >> So I want to know about the plan to f

Re: [lxc-devel] [PATCH] python: Update scripts to respect PEP-8 spec

2013-07-09 Thread Stéphane Graber
On Tue, Jul 09, 2013 at 09:49:08AM -0400, Dwight Engen wrote: > Hi Stéphane, sorry I didn't even know about the existence of > https://pypi.python.org/pypi/pep8, is that the tool to use in the > future if I happen to touch any of the python stuff? Thanks. Hi Dwight, Yep, I usually run pep8 and py

Re: [lxc-devel] [PATCH] python: Update scripts to respect PEP-8 spec

2013-07-09 Thread Dwight Engen
Hi Stéphane, sorry I didn't even know about the existence of https://pypi.python.org/pypi/pep8, is that the tool to use in the future if I happen to touch any of the python stuff? Thanks. On Mon, 8 Jul 2013 10:43:32 -0500 Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > S

Re: [lxc-devel] Howto user namespaces?

2013-07-09 Thread Rui Xiang
On 2013/7/9 19:54, Richard Weinberger wrote: > Am 09.07.2013 13:34, schrieb Rui Xiang: >> On 2013/7/5 19:48, Serge Hallyn wrote: >>> Quoting Rui Xiang (rui.xi...@huawei.com): The same issue troubles me. I try to start the container by these ways in the mails, but get error results too. >

Re: [lxc-devel] Howto user namespaces?

2013-07-09 Thread Rui Xiang
On 2013/7/5 19:48, Serge Hallyn wrote: > Quoting Rui Xiang (rui.xi...@huawei.com): >> The same issue troubles me. I try to start the container by these ways >> in the mails, but get error results too. >> >> So I want to know about the plan to fix it. And your some advice are >> appreciated. :) >