restarting container with a vlan interface results in kernel stack trace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc |
Invalid
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Chris J Arges |
Bug Description
[Impact]
Users of VLANs with LXC containers will see kernel BUGs when starting and stopping containers.
[Test Case]
- In trusty, install lxc and vlan.
- Edit /etc/lxc/
lxc.
lxc.
lxc.
lxc.
lxc.aa_profile = unconfined
- Setup LXC container
sudo lxc-create -t download -n u1 -- --dist ubuntu --release trusty --arch amd64
- Run the following until you see the failure:
lxc-start --name u1 -d
lxc-stop --name u1
[Fix]
commit 5bb025fae53889c
support patches:
commit 0a59f3a9fd7e280
commit 3ee32707560955e
--
Stopping a container and starting it again results in kernel stack trace with a vlan interface.
---8<---
lxc.network.type = vlan
lxc.network.flags = up
lxc.network.link = p3p1
lxc.network.vlan.id = 2
---8<---
dpkg -l | grep lxc
ii liblxc1 1.0.6-0ubuntu0.1 amd64 Linux Containers userspace tools (library)
ii lxc 1.0.6-0ubuntu0.1 amd64 Linux Containers userspace tools
ii lxc-templates 1.0.6-0ubuntu0.1 amd64 Linux Containers userspace tools (templates)
ii python3-lxc 1.0.6-0ubuntu0.1 amd64 Linux Containers userspace tools (Python 3.x bindings)
cat /proc/cmdline
BOOT_IMAGE=
Snipplet from stack trace:
---8<---
[35188.374621] WARNING: CPU: 4 PID: 3933 at /build/
[35188.374623] sysfs: cannot create duplicate filename '/devices/
---8<---
Is deconfiguration on stop of an lxc instance not working anymore?
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in linux (Ubuntu Trusty): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Chris J Arges (arges) |
Changed in lxc: | |
status: | New → Invalid |
description: | updated |
Changed in linux (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
I have the same problem.
Network config: type=vlan link=eth0 name=eth1 flags=up
--------------
lxc.network.
lxc.network.
lxc.network.
lxc.network.vlan.id = 3575
lxc.network.
--------------
From stack trace: buildd/ linux-lts- trusty- 3.13.0/ fs/sysfs/ dir.c:486 sysfs_warn_ dup+0x91/ 0xb0() pci0000: 00/0000: 00:06.0/ 0000:03: 00.0/0000: 04:00.0/ net/eth0/ upper_vlan3575'
----------------
[63371.593308] WARNING: CPU: 6 PID: 10623 at /build/
[63371.593310] sysfs: cannot create duplicate filename '/devices/
---------------
It seems to be a problem with the kernel. This is the kernel version on this host:
# uname -r
3.13.0-32-generic
I have another host with the same lxc version. But with a different kernel that doesn't have this problem:
# uname -r
3.5.0-39-generic