[Bug 1307829] Re: network namespace error

Serge Hallyn 1307829 at bugs.launchpad.net
Tue Apr 15 23:46:16 UTC 2014


The reason iproute is doing this is:

        /* Make it possible for network namespace mounts to propogate between
         * mount namespaces.  This makes it likely that a unmounting a network
         * namespace file in one namespace will unmount the network namespace
         * file in all namespaces allowing the network namespace to be freed
         * sooner.
         */

The command 'ip netns delete x1' simply unmounts /run/netns/x1.  If you
have 300 'ip netns exec x$i' commands running, then having /run/netns
MS_SHARED will propagate the unmounte to all 300 namespaces causing the
network namespace to be freed earlier.

Unfortunately that makes it so that any task which unmounts
/run/netns/x1, which all can do, unmounts it everywhere.

-- 
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/1307829

Title:
  network namespace error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute/+bug/1307829/+subscriptions



More information about the Ubuntu-server-bugs mailing list