/run/netns/* gets umounted on the host when a container starts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iproute (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hello,
I am using latest stables lxc build from http://
root@osctrl3dc
seting the network namespace failed: Invalid argument
Here is the strace:
open("
syscall_308(0x4, 0x40000000, 0x7fffc4d54e83, 0x7fffc4d54bf0, 0x430af0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0) = -1 (errno 22)
As far as I know sys call_308 should set the namespace , but it seems it fails on accessing the /var/run/netns/vips
It is strange that the permissions are altered:
root@osctrl3dc02:~# ls -alh /var/run/netns/vips
---------- 1 root root 0 Apr 14 08:48 /var/run/netns/vips
This file have the following permission before I start the container
-r--r--r-- 1 root root 0 Apr 12 14:01 /var/run/netns/vips
If I destroy the vips namespace and create it again , keeping the lxc containers running, everything is back to normal, both containers and Openstack networking are working.
Best regards,
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: iproute 20111117-1ubuntu2.1
ProcVersionSign
Uname: Linux 3.11.0-19-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Tue Apr 15 00:30:18 2014
InstallationMedia: Ubuntu-Server 12.04.4 LTS "Precise Pangolin" - Release amd64 (20140204)
MarkForUpload: True
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: iproute
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in iproute (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in lxc (Ubuntu): | |
status: | Confirmed → Fix Released |
Thanks for reporting this bug. You say this is only with namespaces pre-created by openstack. I'm confused on that - why is openstack creating new network namespaces inside the container?
I've just tested under precise, and 'ip netns add' does the right thing there, so contrary to what I said before it looks like there is no bug in iproute. I'm going to mark this against nova, but really have no idea what part of nova is involved here.