Re: [lxc-devel] [PATCH 1/2] Revert "utils: reimplement/fix mkdir_p()"

2013-04-19 Thread Stéphane Graber
On 04/19/2013 12:04 AM, richard -rw- weinberger wrote:
> On Thu, Apr 18, 2013 at 8:08 PM, Stéphane Graber  wrote:
>> He only acked the second patch which made it extremely late to the
>> mailing-list (Serge got it early as he was directly CCed on it).
>>
>>> 3. If you encounter problems with one of my patches the lest thing you
>>> can do is CC'ing me.
>>
>> We don't have any real policy that I know of for this mailing-list so I
>> go with the one that's the least annoying for everyone involved which is
>> to always send to the mailing-list and to nobody else (unless someone is
>> clearly not subscribed to it). That way everyone receives the e-mail at
>> the same time.
> 
> Please come up with a sane policy. Otherwise more confusion will happen.
> 
> What is the current work flow?
> Mails get sent to the mailinglist, they land into https://github.com/lxc/lxc
> and later on sourceforge?

The current workflow is to submit patches to the ML, then people will
comment on it and eventually Serge or I will give a final Ack (or Nack)
and push (or not) to the staging branch.

I then send pull requests to Daniel whenever we need a milestone to be
released, at that point he pulls from the staging branch into the
sourceforge branch and after a quick review, tags the milestone.

As we've now started working on 1.0 and I'm planning the final release
for February 2014, the next milestone will be 1.0~alpha1 and will likely
happen in July/August depending on the amount of changes we land till then.


>> Keep in mind that CCing people is what caused that mess to start with
>> (that and you not marking the second submit as "v2" which would have
>> made it trivial to detect).
> 
> A mailer with proper date and thread-support would also have helped. ;-)
> If it helps you maintaining lxc, I can use vX in future.
> But please CC me always if you encounter issues caused by one of my patches.
> I get a gazillion mail per day, being CC'ed helps a lot to sort the
> most important mail out...
> 
>>
>>> --
>>> Thanks,
>>> //richard
>>>
>>
>>
>> --
>> Stéphane Graber
>> Ubuntu developer
>> http://www.ubuntu.com
>>
>>
>> --
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> ___
>> Lxc-devel mailing list
>> Lxc-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/lxc-devel
>>
> 
> 
> 
> --
> Thanks,
> //richard
> 


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com



signature.asc
Description: OpenPGP digital signature
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel


[lxc-devel] namespaces and lxc

2013-04-19 Thread Andy Johnson
Hello,

Question about namespaces and lxc:

I see that there is a tool named lxc-unshare, which is (according to
https://help.ubuntu.com/12.04/serverguide/lxc.html) for
testing and in fact calls the clone() syscall (via lxc_clone())
and not via the unshare() syscall.

While looking in the code for namespaces usage, I saw that in
lxc_attach_to_ns()
there is a call to setns(). But I am not sure as to whether this is used.

Usage of cgroups in lxc is known.

Regarding namesapces: does lxc support all six namesapaces ? are there
examples
 of *.conf file/links for using namespaces ? is there support for user
namespace ?

Best,
Andy Johnson
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel


Re: [lxc-devel] namespaces and lxc

2013-04-19 Thread Serge Hallyn
Quoting Andy Johnson (johnson...@gmail.com):
> Hello,
> 
> Question about namespaces and lxc:
> 
> I see that there is a tool named lxc-unshare, which is (according to
> https://help.ubuntu.com/12.04/serverguide/lxc.html) for
> testing and in fact calls the clone() syscall (via lxc_clone())
> and not via the unshare() syscall.

lxc-unshare will be deprecated soon, as there is a 'unshare' command
in util-linux.

> While looking in the code for namespaces usage, I saw that in
> lxc_attach_to_ns()
> there is a call to setns(). But I am not sure as to whether this is used.

clone and unshare create new namespaces.  setns() attaches to an
existing namespace.

> Usage of cgroups in lxc is known.
> 
> Regarding namesapces: does lxc support all six namesapaces ? are there
> examples
>  of *.conf file/links for using namespaces ?

All namespaces are used.  uts, pid, ipc and mounts are always unshared.
netns is not unshared if you don't specify any 'lxc.network.type' in
your .conf.  user is not unshared if you don't list any lxc.id_map
entries.  Both are described in the lxc.conf(5) man page.

> is there support for user
> namespace ?

Very basic support - for creating a mapped user namespace when starting
as the root user - is there.  More advanced support for user namespace
is in the works.  In particular we want unprivileged users to be able
to create and start containers in user namespaces, but there is work
left to be done.

http://s3hh.wordpress.com/2012/10/31/full-ubuntu-container-confined-in-a-user-namespace/
http://s3hh.wordpress.com/2013/03/07/experimenting-with-user-namespaces/
http://s3hh.wordpress.com/2013/02/12/user-namespaces-lxc-meeting/

The last link in particular leads to some discussion of where we want
to go and what's left to do.

-serge

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel


Re: [lxc-devel] namespaces and lxc

2013-04-19 Thread Andy Johnson
Hello,
Thanks a lot for your very detailed answer and quick response!

Best,
Andy



On Fri, Apr 19, 2013 at 5:18 PM, Serge Hallyn wrote:

> Quoting Andy Johnson (johnson...@gmail.com):
> > Hello,
> >
> > Question about namespaces and lxc:
> >
> > I see that there is a tool named lxc-unshare, which is (according to
> > https://help.ubuntu.com/12.04/serverguide/lxc.html) for
> > testing and in fact calls the clone() syscall (via lxc_clone())
> > and not via the unshare() syscall.
>
> lxc-unshare will be deprecated soon, as there is a 'unshare' command
> in util-linux.
>
> > While looking in the code for namespaces usage, I saw that in
> > lxc_attach_to_ns()
> > there is a call to setns(). But I am not sure as to whether this is used.
>
> clone and unshare create new namespaces.  setns() attaches to an
> existing namespace.
>
> > Usage of cgroups in lxc is known.
> >
> > Regarding namesapces: does lxc support all six namesapaces ? are there
> > examples
> >  of *.conf file/links for using namespaces ?
>
> All namespaces are used.  uts, pid, ipc and mounts are always unshared.
> netns is not unshared if you don't specify any 'lxc.network.type' in
> your .conf.  user is not unshared if you don't list any lxc.id_map
> entries.  Both are described in the lxc.conf(5) man page.
>
> > is there support for user
> > namespace ?
>
> Very basic support - for creating a mapped user namespace when starting
> as the root user - is there.  More advanced support for user namespace
> is in the works.  In particular we want unprivileged users to be able
> to create and start containers in user namespaces, but there is work
> left to be done.
>
>
> http://s3hh.wordpress.com/2012/10/31/full-ubuntu-container-confined-in-a-user-namespace/
> http://s3hh.wordpress.com/2013/03/07/experimenting-with-user-namespaces/
> http://s3hh.wordpress.com/2013/02/12/user-namespaces-lxc-meeting/
>
> The last link in particular leads to some discussion of where we want
> to go and what's left to do.
>
> -serge
>
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel