[lxc-devel] how to tell lxc-monitord to go away?

2013-12-06 Thread Harald Dunkel
Hi folks, If I shut down my drbd partition to mount it on another host, then lxc-monitord keeps the mount point busy for at least 30 seconds. This means additional 30 seconds unavailability of the service provided by the container. Highly painful. Do you think it would be possible to write down

[lxc-devel] [PATCH] lxc-busybox: remove unnecessary bind-mount

2013-12-06 Thread Bogdan Purcareata
Since the line immediately following will mount the entire /sys read-only, hence /sys/kernel/security too. Also, when installing the container template on systems with no securityfs support, starting the container will fail. Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com ---

Re: [lxc-devel] [PATCH] lxc-busybox: remove unnecessary bind-mount

2013-12-06 Thread Stéphane Graber
On Fri, Dec 06, 2013 at 12:11:29PM +0200, Bogdan Purcareata wrote: Since the line immediately following will mount the entire /sys read-only, hence /sys/kernel/security too. Also, when installing the container template on systems with no securityfs support, starting the container will fail.

[lxc-devel] [lxc/lxc] 532512: doc: Update Japanese lxc.conf(5)

2013-12-06 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 53251299b88457150240c235193a3f48c0ba7f0a https://github.com/lxc/lxc/commit/53251299b88457150240c235193a3f48c0ba7f0a Author: KATOH Yasufumi ka...@jazz.email.ne.jp Date: 2013-12-06 (Fri, 06 Dec 2013) Changed

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

2013-12-06 Thread Stéphane Graber
On Fri, Dec 06, 2013 at 03:08:10PM +0900, KATOH Yasufumi wrote: translate the untranslated paragraph Signed-off-by: KATOH Yasufumi ka...@jazz.email.ne.jp Acked-by: Stéphane Graber stgra...@ubuntu.com --- doc/ja/lxc.conf.sgml.in | 3 +++ 1 file changed, 3 insertions(+) diff --git

[lxc-devel] [PATCH] oracle template: fix chcon warning when selinux disabled

2013-12-06 Thread Dwight Engen
Signed-off-by: Dwight Engen dwight.en...@oracle.com --- templates/lxc-oracle.in | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in index 67e46ab..1338f34 100644 --- a/templates/lxc-oracle.in +++

Re: [lxc-devel] [PATCH] Add support for new create=(dir, file) mount option

2013-12-06 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): Just like we already had optional, this adds two new LXC-specific mount flags: - create=dir (will do a mkdir_p on the path) - create=file (will do a mkdir_p on the dirname + a fopen on the path) This was motivated by some of the needed

Re: [lxc-devel] [PATCH] conffile.c: Also clear text entries with no value

2013-12-06 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 --- src/lxc/confile.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index

Re: [lxc-devel] [PATCH] Move some common Ubuntu config

2013-12-06 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): This introduces a new /usr/share/lxc/config directory containing common configuration snippets. The two Ubuntu templates are then simplified to just include the relevant entries avoiding a whole lot of hardcoded cgroup, capabilities and mount

[lxc-devel] [lxc/lxc] d6eca2: conffile.c: Also clear text entries with no value

2013-12-06 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: d6eca24027daa2a379f6bd2c0f50093a08d4df1d https://github.com/lxc/lxc/commit/d6eca24027daa2a379f6bd2c0f50093a08d4df1d Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-12-06 (Fri, 06 Dec 2013) Changed

Re: [lxc-devel] how to tell lxc-monitord to go away?

2013-12-06 Thread Dwight Engen
On Fri, 06 Dec 2013 09:16:34 +0100 Harald Dunkel harald.dun...@aixigo.de wrote: Hi folks, If I shut down my drbd partition to mount it on another host, then lxc-monitord keeps the mount point busy for at least 30 seconds. This means additional 30 seconds unavailability of the service

Re: [lxc-devel] [PATCH] oracle template: fix chcon warning when selinux disabled

2013-12-06 Thread Stéphane Graber
On Fri, Dec 06, 2013 at 09:46:19AM -0500, Dwight Engen wrote: Signed-off-by: Dwight Engen dwight.en...@oracle.com Acked-by: Stéphane Graber stgra...@ubuntu.com --- templates/lxc-oracle.in | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git

[lxc-devel] [PATCH 1/2] add epoll events to mainloop callback handlers

2013-12-06 Thread Dwight Engen
Adding the epoll events allows the handler to determine what events happened on the fd. Signed-off-by: Dwight Engen dwight.en...@oracle.com --- src/lxc/commands.c | 6 -- src/lxc/console.c | 8 src/lxc/lxc_monitord.c | 6 +++--- src/lxc/lxcutmp.c | 7 ---

[lxc-devel] [PATCH 2/2] let lxc-monitor command ask a lxc-monitord instance to quit

2013-12-06 Thread Dwight Engen
Once lxc-monitord receives a quit request from lxc-monitor, it will then return from the mainloop every time an event occurs on any of its fds and check if it has any clients left. When there are no more it exits. This allows lxc-monitord to quit immediately instead of waiting the normal 30

[lxc-devel] [lxc/lxc] 64994c: confile: Fix invalid lxc.network.ipv6 address

2013-12-06 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 64994c030ccf3980a34bc93072155b2810b8f691 https://github.com/lxc/lxc/commit/64994c030ccf3980a34bc93072155b2810b8f691 Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-12-06 (Fri, 06 Dec 2013) Changed

Re: [lxc-devel] [PATCH 2/2] let lxc-monitor command ask a lxc-monitord instance to quit

2013-12-06 Thread Stéphane Graber
On Fri, Dec 06, 2013 at 03:36:50PM -0500, Dwight Engen wrote: Once lxc-monitord receives a quit request from lxc-monitor, it will then return from the mainloop every time an event occurs on any of its fds and check if it has any clients left. When there are no more it exits. This allows

Re: [lxc-devel] [PATCH] busybox template: set mode when creating device nodes

2013-12-06 Thread Stéphane Graber
On Fri, Dec 06, 2013 at 04:47:26PM -0500, Dwight Engen wrote: ensure mode 666 is set for tty1 and tty5 Signed-off-by: Dwight Engen dwight.en...@oracle.com Acked-by: Stéphane Graber stgra...@ubuntu.com --- templates/lxc-busybox.in | 22 +- 1 file changed, 9

[lxc-devel] [lxc/lxc] fbbc15: busybox template: set mode when creating device no...

2013-12-06 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: fbbc15397af76b573f52bb9c8d34a76a344d9ad1 https://github.com/lxc/lxc/commit/fbbc15397af76b573f52bb9c8d34a76a344d9ad1 Author: Dwight Engen dwight.en...@oracle.com Date: 2013-12-06 (Fri, 06 Dec 2013) Changed

[lxc-devel] [PATCH] lxc_monitor: Check return value of write

2013-12-06 Thread Stéphane Graber
Signed-off-by: Stéphane Graber stgra...@ubuntu.com --- src/lxc/lxc_monitor.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lxc/lxc_monitor.c b/src/lxc/lxc_monitor.c index 63ab68b..92477e2 100644 --- a/src/lxc/lxc_monitor.c +++ b/src/lxc/lxc_monitor.c @@ -93,11

[lxc-devel] [lxc/lxc] 8e63ce: lxc_monitor: Check return value of write

2013-12-06 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 8e63ce30045248a3c15560eab71abb24c542d836 https://github.com/lxc/lxc/commit/8e63ce30045248a3c15560eab71abb24c542d836 Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-12-06 (Fri, 06 Dec 2013) Changed

[lxc-devel] [lxc/lxc] fd580e: lxc_monitor: Add missing include (errno.h)

2013-12-06 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: fd580e6deb730e3f700b2f7aea113aa9717bed22 https://github.com/lxc/lxc/commit/fd580e6deb730e3f700b2f7aea113aa9717bed22 Author: Stéphane Graber stgra...@ubuntu.com Date: 2013-12-06 (Fri, 06 Dec 2013) Changed