lxc-start-ephemeral hangs if bind mounting nfs homedir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned | ||
lxc (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Precise |
Invalid
|
Undecided
|
Unassigned | ||
Quantal |
Invalid
|
Medium
|
Unassigned |
Bug Description
On Ubuntu 12.04.1, ephemeral containers seem to conflict with NFS home directories.
The user's home directory is on a remote NFS server.
The original container is created with
sudo lxc-create -t ubuntu -n foobar -- -r lucid --bindhome $LOGNAME
The ephemeral container is started with
lxc-start-
The user logs in to the ephemeral container. This hangs.
After that, any reference to the home directory -- inside or outside of the container -- seems to hang.
mount in the container shows:
none on / type overlayfs (rw,relatime,
none on /mnt/home/builder type overlayfs (rw,relatime,
mount outside the container shows:
obnas1a:
But sometimes, mount outside the container shows nothing for /mnt/home/builder after the problem happens.
This seems 100% repeatable.
---
AlsaDevices:
total 0
crw-rw---T 1 root audio 116, 1 Sep 14 15:17 seq
crw-rw---T 1 root audio 116, 33 Sep 14 15:17 timer
AplayDevices: aplay: device_list:252: no soundcards found...
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
ArecordDevices: arecord: device_list:252: no soundcards found...
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
CurrentDmesg:
Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: Permission denied
dmesg: write failed: Broken pipe
DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120402)
Lsusb: Error: command ['lsusb'] failed with exit code 1: unable to initialize libusb: -99
MachineType: VMware, Inc. VMware Virtual Platform
NonfreeKernelMo
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 svgadrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RfKill:
Tags: precise
Uname: Linux 3.2.0-30-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
WifiSyslog:
dmi.bios.date: 01/07/2011
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: VMware Virtual Platform
dmi.product.
dmi.sys.vendor: VMware, Inc.
affects: | ubuntu → lxc (Ubuntu) |
Changed in lxc (Ubuntu): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Precise): | |
status: | Incomplete → Confirmed |
Using -U aufs yields another strange result:
inside the container, "ls /mnt/home/builder" seems to show the contents of the host's root directory.
System info:
$ dpkg-query -W lxc
lxc 0.7.5-3ubuntu62
$ cat /etc/issue
Ubuntu 12.04.1 LTS \n \l
Original install media may have been precise-beta.