Yeah, the hang only happens on users with nfs home directories. I should file a separate bug for that.
Even on users with a local home directory, though, lxc-ls lists containers multiple times after starting and logging into a container. For instance, $ lxc-ls demo_ubuntu_1204 demo_ubuntu_1204 $ bash -x /usr/bin/lxc-ls + lxcpath=/var/lib/lxc + '[' '!' -r /var/lib/lxc ']' + ls -- /var/lib/lxc demo_ubuntu_1204 ++ netstat -xa ++ grep /var/lib/lxc ++ sed -e 's#.*/var/lib/lxc/\(.*\)/command#\1#' + active=demo_ubuntu_1204 + test -n demo_ubuntu_1204 + get_cgroup + local mount_string ++ mount -t cgroup ++ grep -E -e '^lxc ' + mount_string= + test -n '' ++ grep -m1 -E '^[^ \t]+[ \t]+[^ \t]+[ \t]+cgroup' /proc/self/mounts + mount_string='cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset,clone_children 0 0' + test -z 'cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset,clone_children 0 0' ++ echo 'cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset,clone_children 0 0' ++ cut '-d ' -f2 + mount_point=/sys/fs/cgroup/cpuset + test -n /sys/fs/cgroup/cpuset ++ cat /proc/1/cgroup ++ awk -F: '{ print $3 }' ++ head -1 + init_cgroup=/ + cd /sys/fs/cgroup/cpuset///lxc + ls -d -- demo_ubuntu_1204 demo_ubuntu_1204 So one copy is coming from the ls of /var/lib/lxc, the other is coming from netstat -xa. Why the two paths? -- 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/1043018 Title: lxc-ls lists running containers multiple times To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1043018/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs