[openstack-dev] Isn't it better to make cgroups_path configurable?
dkang at isi.edu
Fri Sep 7 15:29:25 UTC 2012
You are right.
That's why we applied a kernel patch to make 'lxc-attach' work.
$ ls /proc/self/ns/
ipc mnt net pid uts
Kernel wise, we are using 2.6.38 with the kernel patch.
We are using RHEL6.2.
Initially we wanted to use RHEL6.2's default kernel with the kernel patch.
But, either the patch doesn't exist for the default kernel, or the available patch did not work with the default kernel.
So, we tried a few other kernels and found out that 2.6.38 works with the available patch.
$ uname -a
Linux gpu2 188.8.131.52-lxc-0.7.4 #3 SMP Fri Dec 2 15:58:39 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
----- Original Message -----
> On Fri, Sep 07, 2012 at 06:08:26AM -0700, David Kang wrote:
> > Now I have the clear answer to my questions on volume support for
> > LXC instance.
> > (https://bugs.launchpad.net/nova/+bug/1009701
> > https://bugs.launchpad.net/nova/+bug/1046495)
> > Thank you very much, Daniel.
> > Locally, we added some code to nova-compute that uses 'lxc-attach'
> > to
> > make volume attach/detach work for LXC instances.
> Hmm, I'm curious how lxc-attach works, since AFAIK that code relies on
> the same missing kernel support that I describe below. Specifically
> we need the 'mnt' namespace listed in /proc/self/ns/ - currently
> only have 'ipc', 'net' and 'uts' namespaces there. What distro and
> kernel are you using and what files does it show in /proc/self/ns/ ?
> |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
> |: http://libvirt.org -o- http://virt-manager.org :|
> |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
> |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the OpenStack-dev