[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-17 Thread Launchpad Bug Tracker
*** This bug is a duplicate of bug 1350947 *** https://bugs.launchpad.net/bugs/1350947 Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: lxc (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread John Johansen
Can you please attach the output of apparmor_parser -p /etc/apparmor.d/usr.bin.lxc-start -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Stefan Bader
** Also affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container corrupts all

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Stefan Bader
So for now I added also a task for the kernel, though the truth (if such a thing exists) could be somewhere between. Serge, Stephane, what we probably need to figure out is what exactly lxc-start tries to get done when slave mounting /run/netns. And somehow it might be possible that it needs

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Stefan Bader
Stop the bot. ** Changed in: linux (Ubuntu) Status: Incomplete = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container corrupts

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Stefan Bader
Stop the bot. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container corrupts all network namespaces on the same physical host To manage

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Stéphane Graber
so I think it's some systemd handling which does that. LXC unshares the mnt namespace which gets it a copy of the host's, then it's doing some magic (rprivate I believe) to get things working under systemd, then mounts what it needs, unmounts everything else and pivot_root. lxc itself has no code

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Stefan Bader
When stracing lxc-start one of the sub-processes is doing the access. This is the strace of that sub-process. ** Attachment added: lxc-start.strace.3131 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1401148/+attachment/4278745/+files/lxc-start.strace.3131 -- You received this bug

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Stefan Bader
lxc-start.strace.3093:clone(child_stack=0x7fff7fbc0290, flags=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWPID|CLONE_NEWNET|SIGCHLD) = 3131 lxc-start.strace.3093:open(/proc/3131/ns/net, O_RDONLY) = 16 lxc-start.strace.3093:waitid(P_PID, 3131, {}, WNOHANG|WEXITED|WNOWAIT, NULL) = -- You

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Stefan Bader
This is the output of apparmor_parser -p /etc/apparmor.d/usr.bin.lxc- start on Vivid with 3.16 kernel. ** Attachment added: aa-parser.txt https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1401148/+attachment/4278746/+files/aa-parser.txt -- You received this bug notification because you

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Serge Hallyn
Is this only happening when systemd is in the container, or when systemd is on the host? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Stefan Bader
I would have assumed systemd is on neither. Since it seems to be the same all the way since Trusty (at least). -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Serge Hallyn
*** This bug is a duplicate of bug 1350947 *** https://bugs.launchpad.net/bugs/1350947 The only way I can get this to work is to add mount, to /etc/apparmor.d/abstractions/lxc/start-container If I add something like mount options=slave remount options=slave that does not suffice. --

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Serge Hallyn
*** This bug is a duplicate of bug 1350947 *** https://bugs.launchpad.net/bugs/1350947 hah, as pointed out in comment #4 of that bug. Marking this as a dup ** This bug has been marked a duplicate of bug 1350947 apparmor: no working rule to allow making a mount private -- You received

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Serge Hallyn
*** This bug is a duplicate of bug 1350947 *** https://bugs.launchpad.net/bugs/1350947 James if you'd like to increase the priority of bug 1350947 please do so. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread Serge Hallyn
*** This bug is a duplicate of bug 1350947 *** https://bugs.launchpad.net/bugs/1350947 It appears that as tyhicks pointed out this is a dup of bug 1350947. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-10 Thread James Page
To reproduce: sudo lxc-create --name test -t ubuntu-cloud sudo ip netns add test sudo ip netns exec test ip addr 1: lo: LOOPBACK mtu 65536 qdisc noop state DOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 sudo lxc-start -d --name test sudo ip netns exec test-tests ip

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-10 Thread James Page
Confirmed on vivid as well. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container corrupts all network namespaces on the same physical host To

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-10 Thread James Page
sudo ip netns exec test ip addr -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container corrupts all network namespaces on the same physical host

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-10 Thread James Page
Confirmed on utopic as well. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container corrupts all network namespaces on the same physical host To

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-10 Thread Dean Henrichsmeyer
** Tags added: landscape -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container corrupts all network namespaces on the same physical host To

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-10 Thread Stefan Bader
I had assumed that test-test was a type and saw the same result after starting the container with test, too. So somehow starting an lxc container seems to have an impact on netns. Not sure whether the apparmor message may relate which seems to trigger when lxc-start tries to mount /run/netns. --

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-10 Thread Stefan Bader
Hm, as a data-point. It seems for the testing one can set /usr/bin/lxc- start to complain mode: aa-complain /usr/bin/lxc-start and when I did that the test netns is still usable after lxc-start. -- You received this bug notification because you are a member of Ubuntu Server Team, which is