Re: [lxc-devel] lxc-destroy erased my hard disc

2014-01-14 Thread Dan Fandrich
On Mon, Jan 13, 2014 at 06:23:24PM -0600, Serge Hallyn wrote: Gah, that really does suck, sorry. The need to run as root has always been annoying. We're finally at the point that some containers can be created and run entirely as non-root, so that your host should be a lot safer. That's

Re: [lxc-devel] [PATCH] doc: Update lxc.conf(5)

2014-01-14 Thread Stéphane Graber
On Tue, Jan 14, 2014 at 03:51:47PM +0900, KATOH Yasufumi wrote: * Update Japanese lxc.conf(5) for commit 508c263ee6ed2fac73f6979af287caba38963b4b * Remove duplicate line in English lxc.conf(5) Signed-off-by: KATOH Yasufumi ka...@jazz.email.ne.jp Acked-by: Stéphane Graber

[lxc-devel] [lxc/lxc] 83b4b1: doc: Update lxc.conf(5)

2014-01-14 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 83b4b1dca80ab147a7596ffb634863c138b8d9cf https://github.com/lxc/lxc/commit/83b4b1dca80ab147a7596ffb634863c138b8d9cf Author: KATOH Yasufumi ka...@jazz.email.ne.jp Date: 2014-01-14 (Tue, 14 Jan 2014) Changed

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

2014-01-14 Thread Peter Zijlstra
On Tue, Jan 14, 2014 at 02:58:14AM +0200, Marian Marinov wrote: On 01/13/2014 07:12 PM, Peter Zijlstra wrote: On Mon, Jan 13, 2014 at 06:23:50PM +0200, Marian Marinov wrote: Hello Peter, I need help with the scheduler. I'm currently trying to patch the /proc/loadavg to show the load that

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

2014-01-14 Thread Stéphane Graber
On Tue, Jan 14, 2014 at 09:04:32PM +0900, KATOH Yasufumi wrote: Hi, On Mon, 13 Jan 2014 18:33:04 -0500 in message Re: [lxc-devel] Last minute template addition - universal image based template St$(D+1(Bphane Graber-san wrote: I've added plamo support to

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

2014-01-14 Thread KATOH Yasufumi
Hi, Due to the way the Jenkins job were setup, we always start from a clean environment, so that means re-downloading everything every time. For templates using http that's not a big problem because I have a gigabit Debian and Ubuntu mirror on site and I have a gigabit squid proxy for any

Re: [lxc-devel] Pull request: make ubuntu templates apt proxy aware

2014-01-14 Thread Stéphane Graber
On Tue, Jan 14, 2014 at 06:07:32PM +0100, Chris Glass wrote: Should I post the patch to this list instead or is it simply that nobody had time to look at it yet? I don't mean to sound pushy at all (sorry if I do), I'm just trying to contribute the right way :) Thanks - Chris Nope,

[lxc-devel] [PATCH 2/4] download: Don't use an hardcoded exclude list

2014-01-14 Thread Stéphane Graber
Instead of hardcoding --exclude=./dev/*, use a new metadata file excludes which lists all the paths or patterns to exclude during extraction (one per line). Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- templates/lxc-download.in | 18 -- 1 file changed, 12 insertions(+),

[lxc-devel] [PATCH 1/4] download: Fix download_sig logic

2014-01-14 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- templates/lxc-download.in | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/templates/lxc-download.in b/templates/lxc-download.in index fa54686..4f28d0c 100644 --- a/templates/lxc-download.in +++

Re: [lxc-devel] [PATCH 1/4] download: Fix download_sig logic

2014-01-14 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com --- templates/lxc-download.in | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git

Re: [lxc-devel] [PATCH 2/4] download: Don't use an hardcoded exclude list

2014-01-14 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Instead of hardcoding --exclude=./dev/*, use a new metadata file excludes which lists all the paths or patterns to exclude during extraction (one per line). Signed-off-by: Stéphane Graber stgra...@ubuntu.com Acked-by: Serge E. Hallyn

Re: [lxc-devel] [PATCH 3/4] download: Support listing available images

2014-01-14 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Signed-off-by: Stéphane Graber stgra...@ubuntu.com (Didn't test, but looks ok) Acked-by: Serge E. Hallyn serge.hal...@ubuntu.com --- templates/lxc-download.in | 60 ++- 1 file changed, 54

Re: [lxc-devel] [PATCH 4/4] download: Improve cache handling

2014-01-14 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): This adds a new --force-cache parameter which will force use of the cache even for expired images. An expired image is now only flushed from the cache once a new one is successfuly downloaded (to avoid destroying the local cache when the host

[lxc-devel] [lxc/lxc] 3aa0ac: lxc-start-ephemeral: Fix syntax error in aufs

2014-01-14 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 3aa0acaf0cbb70088ef1517b3ed97c39f3693606 https://github.com/lxc/lxc/commit/3aa0acaf0cbb70088ef1517b3ed97c39f3693606 Author: Åsmund Grammeltvedt asmu...@snap.tv Date: 2014-01-14 (Tue, 14 Jan 2014) Changed

[lxc-devel] [lxc/lxc] 17abf2: handle simple bashisms:

2014-01-14 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 17abf2784de1047fb2904ff130ee5efe4ea7b598 https://github.com/lxc/lxc/commit/17abf2784de1047fb2904ff130ee5efe4ea7b598 Author: Elan Ruusamäe g...@delfi.ee Date: 2014-01-14 (Tue, 14 Jan 2014) Changed paths: M

[lxc-devel] [lxc/lxc] 4213a7: Make ubuntu templates squid-deb-proxy-client aware

2014-01-14 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 4213a747e8f2f953114be798bab0e2bf11da4563 https://github.com/lxc/lxc/commit/4213a747e8f2f953114be798bab0e2bf11da4563 Author: Chris Glass trib...@gmail.com Date: 2014-01-14 (Tue, 14 Jan 2014) Changed paths:

Re: [lxc-devel] [PATCH] gentoo template (updated network management, master rebase)

2014-01-14 Thread lxc
Le 14/01/2014 23:40, Stéphane Graber a écrit : On Tue, Jan 14, 2014 at 11:34:19PM +0100, l...@zitta.fr wrote: Le 14/01/2014 22:42, Stéphane Graber a écrit : On Tue, Jan 14, 2014 at 12:06:26AM +0100, l...@zitta.fr wrote: Gentoo template Signed-off-by: gza l...@zitta.fr Hi, I must admit

[lxc-devel] [Still Failing] lxc/lxc#61 (master - b335cf8)

2014-01-14 Thread Travis CI
Build Update for lxc/lxc - Build: #61 Status: Still Failing Duration: 3 minutes and 59 seconds Commit: b335cf8 (master) Author: Stéphane Graber Message: lxc-archlinux: Cleanup fstab It's been brought to my attention that the read-only mount of /proc/sys is

[lxc-devel] [Fixed] lxc/lxc#62 (master - 275a2d0)

2014-01-14 Thread Travis CI
Build Update for lxc/lxc - Build: #62 Status: Fixed Duration: 2 minutes and 59 seconds Commit: 275a2d0 (master) Author: Stéphane Graber Message: tests: Fix startone's call to want_daemonize Signed-off-by: Stéphane Graber stgra...@ubuntu.com View the

[lxc-devel] [PATCH] Fix return value of userns_exec_1

2014-01-14 Thread Stéphane Graber
Instead of always returning -1 and call SYSERROR when the child returns non-zero. Have userns_exec_1 always return the return value from the function it's calling and let the caller do the error handling (as is already done by its only caller). Signed-off-by: Stéphane Graber stgra...@ubuntu.com

[lxc-devel] [lxc/lxc] 3139ae: Fix return value of userns_exec_1

2014-01-14 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 3139aead4d5e91147ae6dfc1ac3ef516bcde7222 https://github.com/lxc/lxc/commit/3139aead4d5e91147ae6dfc1ac3ef516bcde7222 Author: Stéphane Graber stgra...@ubuntu.com Date: 2014-01-14 (Tue, 14 Jan 2014) Changed

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

2014-01-14 Thread Dwight Engen
On Mon, 13 Jan 2014 20:56:23 -0500 Stéphane Graber stgra...@ubuntu.com wrote: [...] Yeah, I did a few last-minute changes. fstab is no longer required (only copied over if it's there). If the expiry file is messing, it's simply assumed that the container won't expire. Nice, that makes

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

2014-01-14 Thread Stéphane Graber
On Tue, Jan 14, 2014 at 06:38:43PM -0500, Dwight Engen wrote: On Mon, 13 Jan 2014 20:56:23 -0500 Stéphane Graber stgra...@ubuntu.com wrote: [...] Yeah, I did a few last-minute changes. fstab is no longer required (only copied over if it's there). If the expiry file is messing,

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

2014-01-14 Thread S . Çağlar Onur
Hey Stéphane, On Tue, Jan 14, 2014 at 6:52 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Jan 14, 2014 at 06:38:43PM -0500, Dwight Engen wrote: On Mon, 13 Jan 2014 20:56:23 -0500 Stéphane Graber stgra...@ubuntu.com wrote: [...] Yeah, I did a few last-minute changes. fstab is

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

2014-01-14 Thread S . Çağlar Onur
On Tue, Jan 14, 2014 at 9:24 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Jan 14, 2014 at 09:12:31PM -0500, S.Çağlar Onur wrote: Hey Stéphane, On Tue, Jan 14, 2014 at 6:52 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Jan 14, 2014 at 06:38:43PM -0500, Dwight Engen wrote:

[lxc-devel] [PATCH] lxc-download: POSIX doesn't specify -f for chown

2014-01-14 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- templates/lxc-download.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/lxc-download.in b/templates/lxc-download.in index c318041..04f5846 100644 --- a/templates/lxc-download.in +++

[lxc-devel] [PATCH] lxccontainer.c: check lxc_conf before referance haltsignal

2014-01-14 Thread Qiang Huang
If we start container with rcfile(see comments in lxc_start.c), it is possible that we have no config file in /usr/local/var/lib/lxc. So when we try lxc_stop, lxc_container_new will not load any config so we'll get c-lxc_conf = NULL. In that case, we'll get Segmentation fault in lxcapi_shutdown,

[lxc-devel] [PATCH] lxc-download: Fix wrong option parsing

2014-01-14 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- templates/lxc-download.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-download.in b/templates/lxc-download.in index 04f5846..aa93b59 100644 --- a/templates/lxc-download.in +++ b/templates/lxc-download.in

Re: [lxc-devel] [PATCH] lxccontainer.c: check lxc_conf before referance haltsignal

2014-01-14 Thread Stéphane Graber
On Wed, Jan 15, 2014 at 10:45:18AM +0800, Qiang Huang wrote: If we start container with rcfile(see comments in lxc_start.c), it is possible that we have no config file in /usr/local/var/lib/lxc. So when we try lxc_stop, lxc_container_new will not load any config so we'll get c-lxc_conf = NULL.

[lxc-devel] [PATCH] Always try to create lxcpath

2014-01-14 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/lxc/lxc_create.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lxc/lxc_create.c b/src/lxc/lxc_create.c index d02dacc..6d94709 100644 --- a/src/lxc/lxc_create.c +++ b/src/lxc/lxc_create.c @@ -206,6 +206,9 @@ int main(int argc,

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

2014-01-14 Thread S . Çağlar Onur
On Tue, Jan 14, 2014 at 9:50 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Jan 14, 2014 at 09:48:13PM -0500, Stéphane Graber wrote: On Tue, Jan 14, 2014 at 09:30:50PM -0500, S.Çağlar Onur wrote: On Tue, Jan 14, 2014 at 9:24 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue,

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

2014-01-14 Thread Stéphane Graber
On Tue, Jan 14, 2014 at 10:02:39PM -0500, S.Çağlar Onur wrote: On Tue, Jan 14, 2014 at 9:50 PM, Stéphane Graber stgra...@ubuntu.com wrote: On Tue, Jan 14, 2014 at 09:48:13PM -0500, Stéphane Graber wrote: On Tue, Jan 14, 2014 at 09:30:50PM -0500, S.Çağlar Onur wrote: On Tue, Jan 14, 2014 at

[lxc-devel] [PATCH] cgroup.c: redefine the valid cgroup name

2014-01-14 Thread Qiang Huang
Signed-off-by: Qiang Huang h.huangqi...@huawei.com --- src/lxc/cgroup.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index 6d837f9..69910cc 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -1669,7 +1669,11 @@ bool