[libvirt-users] oddity with lxc-enter-namespace

Hi folks I have a question about lxc-enter-namespace I am migrating lxc containers from a host running libvirt-1.2.5 on f20 to another one running libvirt-1.2.9 on f21 and now I can't seem to use lxc-enter-namespace for entering in a container any more I would do virsh -c lxc:/// lxc-enter-namespace --noseclabel container /bin/bash but when I try the same now I am getting this: # virsh -c lxc:/// lxc-enter-namespace --noseclabel nagios /bin/bash setlocale: No such file or directory libvirt: error : Expected at least one file descriptor error: internal error: Child process (137198) unexpected exit status 125 I tried to google that but nothing too relevant showed up.. are there known regressions to lxc-enter-namespace, or what else do I seem to do wrong here? thanks

On Thu, Apr 02, 2015 at 10:25:23AM +0200, Thierry Parmentelat wrote:
Hi folks
I have a question about lxc-enter-namespace I am migrating lxc containers from a host running libvirt-1.2.5 on f20 to another one running libvirt-1.2.9 on f21
and now I can't seem to use lxc-enter-namespace for entering in a container any more
I would do virsh -c lxc:/// lxc-enter-namespace --noseclabel container /bin/bash
but when I try the same now I am getting this:
# virsh -c lxc:/// lxc-enter-namespace --noseclabel nagios /bin/bash setlocale: No such file or directory libvirt: error : Expected at least one file descriptor error: internal error: Child process (137198) unexpected exit status 125
I tried to google that but nothing too relevant showed up..
are there known regressions to lxc-enter-namespace, or what else do I seem to do wrong here?
I see none of that being possible to happen in the current upstream. Could you try reproducing that with latest version if you have the possibility to do so? Thank you.
thanks
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Hello The latest attempts that I made on fedora21 all gave me the same result I have tried . vanilla rpm from f21 (1.2.9 IIRC) . 1.2.14 . 1.2.13 . 1.2.12 these three ones I rebuilt from the source rpm published by libvirt eventually I reworked my own tools to enter the container via ssh, so this is not an immediate concern to me any longer but it is definitely odd I currently use 1.2.12 because neither 1.2.13 nor 1.2.14 would accept to start any lxc container in my environment I can do further tests based on that setup if it can be helpful thanks — Thierry
On 14 Apr 2015, at 14:37, Martin Kletzander <mkletzan@redhat.com> wrote:
On Thu, Apr 02, 2015 at 10:25:23AM +0200, Thierry Parmentelat wrote:
Hi folks
I have a question about lxc-enter-namespace I am migrating lxc containers from a host running libvirt-1.2.5 on f20 to another one running libvirt-1.2.9 on f21
and now I can't seem to use lxc-enter-namespace for entering in a container any more
I would do virsh -c lxc:/// lxc-enter-namespace --noseclabel container /bin/bash
but when I try the same now I am getting this:
# virsh -c lxc:/// lxc-enter-namespace --noseclabel nagios /bin/bash setlocale: No such file or directory libvirt: error : Expected at least one file descriptor error: internal error: Child process (137198) unexpected exit status 125
I tried to google that but nothing too relevant showed up..
are there known regressions to lxc-enter-namespace, or what else do I seem to do wrong here?
I see none of that being possible to happen in the current upstream. Could you try reproducing that with latest version if you have the possibility to do so? Thank you.
thanks
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

On Tue, Apr 14, 2015 at 06:30:13PM +0200, Thierry Parmentelat wrote:
Hello
The latest attempts that I made on fedora21 all gave me the same result I have tried . vanilla rpm from f21 (1.2.9 IIRC) . 1.2.14 . 1.2.13 . 1.2.12 these three ones I rebuilt from the source rpm published by libvirt
All x86_64 RPMs are available here: ftp://libvirt.org/libvirt/ no need to rebuild them.
eventually I reworked my own tools to enter the container via ssh, so this is not an immediate concern to me any longer but it is definitely odd
This is better in more ways than just a workaround for this. For example if you have some restriction on the processes inside that container (e.g. using cpuset cgroup) , lxc-enter-namespace will not take that into account.
I currently use 1.2.12 because neither 1.2.13 nor 1.2.14 would accept to start any lxc container in my environment I can do further tests based on that setup if it can be helpful
Not even start? What's the XML you are using?
thanks — Thierry
On 14 Apr 2015, at 14:37, Martin Kletzander <mkletzan@redhat.com> wrote:
On Thu, Apr 02, 2015 at 10:25:23AM +0200, Thierry Parmentelat wrote:
Hi folks
I have a question about lxc-enter-namespace I am migrating lxc containers from a host running libvirt-1.2.5 on f20 to another one running libvirt-1.2.9 on f21
and now I can't seem to use lxc-enter-namespace for entering in a container any more
I would do virsh -c lxc:/// lxc-enter-namespace --noseclabel container /bin/bash
but when I try the same now I am getting this:
# virsh -c lxc:/// lxc-enter-namespace --noseclabel nagios /bin/bash setlocale: No such file or directory libvirt: error : Expected at least one file descriptor error: internal error: Child process (137198) unexpected exit status 125
I tried to google that but nothing too relevant showed up..
are there known regressions to lxc-enter-namespace, or what else do I seem to do wrong here?
I see none of that being possible to happen in the current upstream. Could you try reproducing that with latest version if you have the possibility to do so? Thank you.
thanks
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
participants (2)
-
Martin Kletzander
-
Thierry Parmentelat