[Bug 1091763] [NEW] lxc-start-ephemeral freezes
Gleb Peregud
gleber.p at gmail.com
Tue Dec 18 16:51:59 UTC 2012
*** This bug is a duplicate of bug 1021471 ***
https://bugs.launchpad.net/bugs/1021471
Public bug reported:
When ephemeral containers I sometimes stumble upon a a complete freeze
of all lxc script. Usually I can observe that it happens when something
goes wrong with stopping of ephemeral container - i.e. I can see a
STOPPED ephemeral container in `lxc-list` output. Any attempts to stop
it result in a following error:
gleber at first:~$ sudo lxc-destroy -n ci1-temp-1koGK9z
rm: cannot remove `//var/lib/lxc/ci1-temp-1koGK9z/rootfs': Device or resource busy
rm: skipping `/var/lib/lxc/ci1-temp-1koGK9z/rootfs', since it's on a different device
rm: skipping `/var/lib/lxc/ci1-temp-1koGK9z/ephemeralbind', since it's on a different device
Attempts to start a new container just freezes:
gleber at first:$ sudo lxc-start-ephemeral -o ci1
Setting up ephemeral container...
Starting up the container...
Also I can see the following entries in dmesg:
[ 987.153540] lxcbr0: port 1(vethLS9Vtq) entered disabled state
[ 987.155642] device vethLS9Vtq left promiscuous mode
[ 987.155650] lxcbr0: port 1(vethLS9Vtq) entered disabled state
[ 995.417290] device veth5Z0GDu entered promiscuous mode
[ 995.417959] IPv6: ADDRCONF(NETDEV_UP): veth5Z0GDu: link is not ready
[ 997.404022] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1007.644028] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1017.884030] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1023.544340] device vethuN6cMx entered promiscuous mode
[ 1023.545161] IPv6: ADDRCONF(NETDEV_UP): vethuN6cMx: link is not ready
[ 1028.124025] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1038.364042] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1048.604022] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1058.844040] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1069.084024] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1079.324022] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1089.564026] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1099.804020] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1110.044020] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1120.284018] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1130.524021] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1140.764017] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1151.004024] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1161.244019] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1171.484037] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1181.724016] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1191.964024] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1200.212062] INFO: task lxc-start:14562 blocked for more than 120 seconds.
[ 1200.212069] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1200.212073] lxc-start D 00000000 0 14562 1 0x00000004
[ 1200.212081] ebaa1e74 00200086 00000000 00000000 ebaa1e20 f28758d0 f2904000 000000e7
[ 1200.212094] c196be00 c196be00 c36b1413 000000e7 f7bc8e00 eecc32c0 c1107e95 ebaa1e30
[ 1200.212106] c1107ec6 ebaa1e6c c11521a2 f64c8118 c17bc906 ef8790c0 ef879138 ebaa1e50
[ 1200.212119] Call Trace:
[ 1200.212132] [<c1107e95>] ? __free_pages+0x35/0x40
[ 1200.212139] [<c1107ec6>] ? free_pages+0x26/0x30
[ 1200.212146] [<c11521a2>] ? mount_fs+0xa2/0x180
[ 1200.212153] [<c106d48e>] ? lg_global_unlock+0x3e/0x50
[ 1200.212161] [<c15c95d3>] schedule+0x23/0x60
[ 1200.212167] [<c15c982d>] schedule_preempt_disabled+0xd/0x10
[ 1200.212172] [<c15c8586>] __mutex_lock_slowpath+0xc6/0x120
[ 1200.212178] [<c15c8114>] mutex_lock+0x24/0x40
[ 1200.212185] [<c14d62cc>] copy_net_ns+0x5c/0xd0
[ 1200.212191] [<c106a411>] create_new_namespaces+0xb1/0x150
[ 1200.212197] [<c106a5b2>] copy_namespaces+0x72/0xb0
[ 1200.212205] [<c10430cb>] copy_process.part.28+0x6db/0x10f0
[ 1200.212211] [<c1043c3a>] do_fork+0x11a/0x350
[ 1200.212218] [<c10185e4>] sys_clone+0x34/0x40
[ 1200.212224] [<c15d12d9>] ptregs_clone+0x15/0x3c
[ 1200.212230] [<c15ca5a4>] ? syscall_call+0x7/0xb
---
ApportVersion: 2.7-0ubuntu2
Architecture: i386
DistroRelease: Ubuntu 12.10
KernLog:
MarkForUpload: True
NonfreeKernelModules: nvidia
Package: lxc 0.8.0~rc1-4ubuntu48 [modified: usr/bin/lxc-setcap usr/bin/lxc-setuid]
PackageArchitecture: i386
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-3.5.0-19-generic root=UUID=e8e7b19c-1179-4cf0-9a7b-5879fb916154 ro quiet splash
ProcEnviron:
TERM=rxvt-unicode
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.5.0-19.30-generic 3.5.7
Tags: quantal
Uname: Linux 3.5.0-19-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: audio libvirtd sudo
lxcsyslog:
modified.conffile..etc.default.lxc: [modified]
mtime.conffile..etc.default.lxc: 2012-12-12T17:39:04.517138
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-collected quantal
** Attachment added: "full dmesg output"
https://bugs.launchpad.net/bugs/1091763/+attachment/3463110/+files/lxc-bug-full.txt
** Tags added: apport-collected quantal
** Description changed:
When ephemeral containers I sometimes stumble upon a a complete freeze
of all lxc script. Usually I can observe that it happens when something
goes wrong with stopping of ephemeral container - i.e. I can see a
STOPPED ephemeral container in `lxc-list` output. Any attempts to stop
it result in a following error:
gleber at first:~$ sudo lxc-destroy -n ci1-temp-1koGK9z
rm: cannot remove `//var/lib/lxc/ci1-temp-1koGK9z/rootfs': Device or resource busy
rm: skipping `/var/lib/lxc/ci1-temp-1koGK9z/rootfs', since it's on a different device
rm: skipping `/var/lib/lxc/ci1-temp-1koGK9z/ephemeralbind', since it's on a different device
Attempts to start a new container just freezes:
gleber at first:$ sudo lxc-start-ephemeral -o ci1
Setting up ephemeral container...
Starting up the container...
Also I can see the following entries in dmesg:
[ 987.153540] lxcbr0: port 1(vethLS9Vtq) entered disabled state
[ 987.155642] device vethLS9Vtq left promiscuous mode
[ 987.155650] lxcbr0: port 1(vethLS9Vtq) entered disabled state
[ 995.417290] device veth5Z0GDu entered promiscuous mode
[ 995.417959] IPv6: ADDRCONF(NETDEV_UP): veth5Z0GDu: link is not ready
[ 997.404022] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1007.644028] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1017.884030] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1023.544340] device vethuN6cMx entered promiscuous mode
[ 1023.545161] IPv6: ADDRCONF(NETDEV_UP): vethuN6cMx: link is not ready
[ 1028.124025] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1038.364042] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1048.604022] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1058.844040] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1069.084024] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1079.324022] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1089.564026] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1099.804020] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1110.044020] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1120.284018] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1130.524021] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1140.764017] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1151.004024] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1161.244019] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1171.484037] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1181.724016] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1191.964024] unregister_netdevice: waiting for lo to become free. Usage count = 1
[ 1200.212062] INFO: task lxc-start:14562 blocked for more than 120 seconds.
[ 1200.212069] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1200.212073] lxc-start D 00000000 0 14562 1 0x00000004
[ 1200.212081] ebaa1e74 00200086 00000000 00000000 ebaa1e20 f28758d0 f2904000 000000e7
[ 1200.212094] c196be00 c196be00 c36b1413 000000e7 f7bc8e00 eecc32c0 c1107e95 ebaa1e30
[ 1200.212106] c1107ec6 ebaa1e6c c11521a2 f64c8118 c17bc906 ef8790c0 ef879138 ebaa1e50
[ 1200.212119] Call Trace:
[ 1200.212132] [<c1107e95>] ? __free_pages+0x35/0x40
[ 1200.212139] [<c1107ec6>] ? free_pages+0x26/0x30
[ 1200.212146] [<c11521a2>] ? mount_fs+0xa2/0x180
[ 1200.212153] [<c106d48e>] ? lg_global_unlock+0x3e/0x50
[ 1200.212161] [<c15c95d3>] schedule+0x23/0x60
[ 1200.212167] [<c15c982d>] schedule_preempt_disabled+0xd/0x10
[ 1200.212172] [<c15c8586>] __mutex_lock_slowpath+0xc6/0x120
[ 1200.212178] [<c15c8114>] mutex_lock+0x24/0x40
[ 1200.212185] [<c14d62cc>] copy_net_ns+0x5c/0xd0
[ 1200.212191] [<c106a411>] create_new_namespaces+0xb1/0x150
[ 1200.212197] [<c106a5b2>] copy_namespaces+0x72/0xb0
[ 1200.212205] [<c10430cb>] copy_process.part.28+0x6db/0x10f0
[ 1200.212211] [<c1043c3a>] do_fork+0x11a/0x350
[ 1200.212218] [<c10185e4>] sys_clone+0x34/0x40
[ 1200.212224] [<c15d12d9>] ptregs_clone+0x15/0x3c
[ 1200.212230] [<c15ca5a4>] ? syscall_call+0x7/0xb
+ ---
+ ApportVersion: 2.7-0ubuntu2
+ Architecture: i386
+ DistroRelease: Ubuntu 12.10
+ KernLog:
+
+ MarkForUpload: True
+ NonfreeKernelModules: nvidia
+ Package: lxc 0.8.0~rc1-4ubuntu48 [modified: usr/bin/lxc-setcap usr/bin/lxc-setuid]
+ PackageArchitecture: i386
+ ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-3.5.0-19-generic root=UUID=e8e7b19c-1179-4cf0-9a7b-5879fb916154 ro quiet splash
+ ProcEnviron:
+ TERM=rxvt-unicode
+ PATH=(custom, no user)
+ LANG=en_US.UTF-8
+ SHELL=/bin/bash
+ ProcVersionSignature: Ubuntu 3.5.0-19.30-generic 3.5.7
+ Tags: quantal
+ Uname: Linux 3.5.0-19-generic i686
+ UpgradeStatus: No upgrade log present (probably fresh install)
+ UserGroups: audio libvirtd sudo
+ lxcsyslog:
+
+ modified.conffile..etc.default.lxc: [modified]
+ mtime.conffile..etc.default.lxc: 2012-12-12T17:39:04.517138
--
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/1091763
Title:
lxc-start-ephemeral freezes
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1091763/+subscriptions
More information about the Ubuntu-server-bugs
mailing list