[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 t

[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 --- templates/lxc-busybox.in | 1 - 1

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 fa

[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 Date: 2013-12-06 (Fri, 06 Dec 2013) Changed paths: M doc/ja/lxc.c

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 Acked-by: Stéphane Graber > --- > doc/ja/lxc.conf.sgml.in | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/doc/ja/lxc.conf.sgml.in b/doc/ja/lxc.

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

2013-12-06 Thread Dwight Engen
Signed-off-by: Dwight Engen --- 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 +++ b/templates/lxc-oracle.in @@ -46,6 +46,15

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 Acked-by: Serge E. Hallyn > --- > 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 835153b..5f25e08 100644 > --- a/src/l

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 mo

[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 Date: 2013-12-06 (Fri, 06 Dec 2013) Changed paths: M src/lxc/con

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 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 provided by the contain

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 Acked-by: Stéphane Graber > --- > templates/lxc-oracle.in | 13 +++-- > 1 files changed, 11 insertions(+), 2 deletions(-) > > diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in >

[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 --- src/lxc/commands.c | 6 -- src/lxc/console.c | 8 src/lxc/lxc_monitord.c | 6 +++--- src/lxc/lxcutmp.c | 7 --- src/lxc/mainloop.c | 4 ++--

[lxc-devel] [lxc/lxc] 341c97: oracle: fix chcon warning when selinux disabled

2013-12-06 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 341c97180674dc4d55d356a6857d788d45708ced https://github.com/lxc/lxc/commit/341c97180674dc4d55d356a6857d788d45708ced Author: Dwight Engen Date: 2013-12-06 (Fri, 06 Dec 2013) Changed paths: M templates/lxc-

[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 seconds

[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 Date: 2013-12-06 (Fri, 06 Dec 2013) Changed paths: M src/lxc/con

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 lxc

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

2013-12-06 Thread Stéphane Graber
On Fri, Dec 06, 2013 at 03:36:44PM -0500, Dwight Engen wrote: > Adding the epoll events allows the handler to determine what events > happened on the fd. > > Signed-off-by: Dwight Engen Acked-by: Stéphane Graber > --- > src/lxc/commands.c | 6 -- > src/lxc/console.c | 8

[lxc-devel] [lxc/lxc] 84c92a: add epoll events to mainloop callback handlers

2013-12-06 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 84c92abdd1c59de02f446e02ff7fd3e1d70b4811 https://github.com/lxc/lxc/commit/84c92abdd1c59de02f446e02ff7fd3e1d70b4811 Author: Dwight Engen Date: 2013-12-06 (Fri, 06 Dec 2013) Changed paths: M src/lxc/comman

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

2013-12-06 Thread Dwight Engen
ensure mode 666 is set for tty1 and tty5 Signed-off-by: Dwight Engen --- templates/lxc-busybox.in | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in index 23d654e..97614c6 100644 --- a/templates/lxc-busy

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 Acked-by: Stéphane Graber > --- > templates/lxc-busybox.in | 22 +- > 1 file changed, 9 insertions(+), 13 deletions(-) > > diff --git a

[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 Date: 2013-12-06 (Fri, 06 Dec 2013) Changed paths: M templates/lxc-

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

2013-12-06 Thread Stéphane Graber
Signed-off-by: Stéphane Graber --- 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 +93,16 @@ int main(in

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

2013-12-06 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn one thing, > --- > 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..

[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 Date: 2013-12-06 (Fri, 06 Dec 2013) Changed paths: M src/lxc/lxc

[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 Date: 2013-12-06 (Fri, 06 Dec 2013) Changed paths: M src/lxc/lxc