Re: [lxc-devel] [PATCH 1/1] create: add a quiet flag

2013-07-12 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Fri, 12 Jul 2013 09:44:41 -0500 > Serge Hallyn wrote: > > > > > If set, then fds 0,1,2 will be redirected while the creation > > template is executed. > > > > Note, as Dwight has pointed out, if fd 0 is redirected, then if > > templates ask f

[lxc-devel] [PATCH] Make get_ips timeout poll configurable

2013-07-12 Thread John McFarlane
This commit increases the default timeout used by lxc-start-ephemeral from 5 to 10, and adds support for an LXC_IP_TIMEOUT override. Patchset 2: - Previous patch used a command line arg. Signed-off-by: John McFarlane --- src/lxc/lxc-start-ephemeral.in | 2 +- src/python-lxc/lxc/__init__.py |

Re: [lxc-devel] [PATCH 1/1] create: add a quiet flag

2013-07-12 Thread Dwight Engen
On Fri, 12 Jul 2013 09:44:41 -0500 Serge Hallyn wrote: > > If set, then fds 0,1,2 will be redirected while the creation > template is executed. > > Note, as Dwight has pointed out, if fd 0 is redirected, then if > templates ask for input there will be a problem. We could simply > not redirect

[lxc-devel] [PATCH 1/1] remove old lxc-create script.

2013-07-12 Thread Serge Hallyn
Signed-off-by: Serge Hallyn --- src/lxc/lxc-create.in | 415 -- 1 file changed, 415 deletions(-) delete mode 100644 src/lxc/lxc-create.in diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in deleted file mode 100644 index 439ce51..000 --

[lxc-devel] [PATCH] lxc_create: prepend pretty header to config file (v2)

2013-07-12 Thread Serge Hallyn
Define a sha1sum_file() function in utils.c. Use that in lxcapi_create to write out the sha1sum of the template being used. If libgnutls is not found, then the template sha1sum simply won't be printed into the container config. This patch also trivially fixes some cases where SYSERROR is used af

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Daniel P. Berrange
On Fri, Jul 12, 2013 at 11:00:09AM -0500, Serge Hallyn wrote: > Quoting Daniel P. Berrange (berra...@redhat.com): > > Copy+pasting code for encryption algorithms is really not nice. > > It means that instead of distributors of your package being able > > to rely on the fact 'gnutls' is (eg) FIPS ce

Re: [lxc-devel] [PATCH 1/1] create: add a quiet flag

2013-07-12 Thread Stéphane Graber
On Fri, Jul 12, 2013 at 09:44:41AM -0500, Serge Hallyn wrote: > > If set, then fds 0,1,2 will be redirected while the creation > template is executed. > > Note, as Dwight has pointed out, if fd 0 is redirected, then if > templates ask for input there will be a problem. We could simply > not redi

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Stéphane Graber
On Fri, Jul 12, 2013 at 04:49:33PM +0100, Daniel P. Berrange wrote: > On Fri, Jul 12, 2013 at 10:27:14AM -0500, Serge Hallyn wrote: > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > On Thu, Jul 11, 2013 at 11:51:25PM -0500, Serge Hallyn wrote: > > > > Define a sha1sum_file() function in util

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Serge Hallyn
Quoting Daniel P. Berrange (berra...@redhat.com): > Copy+pasting code for encryption algorithms is really not nice. > It means that instead of distributors of your package being able > to rely on the fact 'gnutls' is (eg) FIPS certified, they now have > to explicitly certify the copy of the code in

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Daniel P. Berrange
On Fri, Jul 12, 2013 at 10:27:14AM -0500, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > On Thu, Jul 11, 2013 at 11:51:25PM -0500, Serge Hallyn wrote: > > > Define a sha1sum_file() function in utils.c (which requires configure.ac > > > to check for -lcrypto and -lssl). Us

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Thu, Jul 11, 2013 at 11:51:25PM -0500, Serge Hallyn wrote: > > Define a sha1sum_file() function in utils.c (which requires configure.ac > > to check for -lcrypto and -lssl). Use that in lxcapi_create to write out > > the sha1sum of the template b

[lxc-devel] [PATCH 1/1] create: add a quiet flag

2013-07-12 Thread Serge Hallyn
If set, then fds 0,1,2 will be redirected while the creation template is executed. Note, as Dwight has pointed out, if fd 0 is redirected, then if templates ask for input there will be a problem. We could simply not redirect fd 0, or we could require that templates work without interaction. I'm

Re: [lxc-devel] LXC 1.0 and feature support on kernel level

2013-07-12 Thread Serge Hallyn
Quoting Jäkel, Guido (g.jae...@dnb.de): > Dear Core-Developers, > > i would like to ask for a discussion about the status of a kind of > improvements that -- as I know -- will need support by the kernel developers. > But a LXC (newbie) user may expect such things from a software level 1.0, > wi

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Stéphane Graber
On Thu, Jul 11, 2013 at 11:51:25PM -0500, Serge Hallyn wrote: > Define a sha1sum_file() function in utils.c (which requires configure.ac > to check for -lcrypto and -lssl). Use that in lxcapi_create to write out > the sha1sum of the template being used. > > Signed-off-by: Serge Hallyn > --- > c

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

2013-07-12 Thread Dwight Engen
On Thu, 11 Jul 2013 18:05:53 -0500 Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > On Thu, 11 Jul 2013 16:24:43 -0500 > > Serge Hallyn wrote: > > > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > > On Thu, 11 Jul 2013 09:22:47 -0500 > > > > Serge Hallyn wrot

Re: [lxc-devel] [PATCH] lxc_create: add outfile option

2013-07-12 Thread Dwight Engen
On Thu, 11 Jul 2013 23:55:36 -0500 Serge Hallyn wrote: > Quoting S.Çağlar Onur (cag...@10ur.org): > > Hi, > > > > > > On Thu, Jul 11, 2013 at 5:39 PM, Dwight Engen > > wrote: > > > > > On Thu, 11 Jul 2013 16:22:11 -0500 > > > Serge Hallyn wrote: > > > > > > > Quoting Dwight Engen (dwight.en..

[lxc-devel] LXC 1.0 and feature support on kernel level

2013-07-12 Thread Jäkel , Guido
Dear Core-Developers, i would like to ask for a discussion about the status of a kind of improvements that -- as I know -- will need support by the kernel developers. But a LXC (newbie) user may expect such things from a software level 1.0, will miss it. In the worst case, this may have impacts