Re/starting an lxc container corrupts all network namespaces on the same physical host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
lxc (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Context: Neutron gateway north/south routing server which manages a large number of network namespaces; also hosts a few LXC containers for misc lightweight control plane services.
Problem: If I restart one of the lxc containers, all of the namespaces get corrupted in someway; attempting to exec anything in any namespace fails with:
seting the network namespace "qrouter-
seting the network namespace "qrouter-
seting the network namespace "qrouter-
seting the network namespace "qrouter-
seting the network namespace "qrouter-
seting the network namespace "qrouter-
seting the network namespace "qrouter-
I also see:
Dec 10 15:16:00 cofgod kernel: [ 4604.274359] type=1400 audit(141822456
Dec 10 15:16:00 cofgod kernel: [ 4604.274405] type=1400 audit(141822456
Dec 10 15:16:00 cofgod kernel: [ 4604.274436] type=1400 audit(141822456
Dec 10 15:16:00 cofgod kernel: [ 4604.274451] type=1400 audit(141822456
Dec 10 15:16:00 cofgod kernel: [ 4604.274466] type=1400 audit(141822456
Dec 10 15:16:00 cofgod kernel: [ 4604.274482] type=1400 audit(141822456
Dec 10 15:16:00 cofgod kernel: [ 4604.274497] type=1400 audit(141822456
In the kern.log
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: lxc 1.0.6-0ubuntu0.1
ProcVersionSign
Uname: Linux 3.13.0-35-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
Date: Wed Dec 10 15:24:45 2014
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
defaults.conf:
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:xx:xx:xx
tags: | added: landscape |
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 addr
seting the network namespace "test-tests" failed: Invalid argument