[Bug 925110] [NEW] lxc-ls fails as non-root sometimes (second bug)
Scott Moser
smoser at ubuntu.com
Wed Feb 1 21:09:47 UTC 2012
Public bug reported:
ubuntu at server-4390:~$ lxc-ls; echo $?
ubuntu-jstack-0-template ubuntu-jstack-nova-compute-0
ubuntu-jstack-glance-0 ubuntu-jstack-nova-volume-0
ubuntu-jstack-keystone-0 ubuntu-jstack-openstack-dashboard-0
ubuntu-jstack-mysql-0 ubuntu-jstack-rabbitmq-0
ubuntu-jstack-nova-cloud-controller-0 ubuntu-source
/usr/bin/lxc-ls: line 35: cd: /sys/fs/cgroup/cpuset///lxc: Permission denied
ls: cannot access ubuntu-jstack-nova-volume-0: No such file or directory
ls: cannot access ubuntu-jstack-nova-cloud-controller-0: No such file or directory
ls: cannot access ubuntu-jstack-rabbitmq-0: No such file or directory
ls: cannot access ubuntu-jstack-keystone-0: No such file or directory
ls: cannot access ubuntu-jstack-openstack-dashboard-0: No such file or directory
ls: cannot access ubuntu-jstack-glance-0: No such file or directory
ls: cannot access ubuntu-jstack-nova-compute-0: No such file or directory
ls: cannot access ubuntu-jstack-mysql-0: No such file or directory
2
ubuntu at server-4390:~$ sudo lxc-ls; echo $?
ubuntu-jstack-0-template ubuntu-jstack-nova-compute-0
ubuntu-jstack-glance-0 ubuntu-jstack-nova-volume-0
ubuntu-jstack-keystone-0 ubuntu-jstack-openstack-dashboard-0
ubuntu-jstack-mysql-0 ubuntu-jstack-rabbitmq-0
ubuntu-jstack-nova-cloud-controller-0 ubuntu-source
ubuntu-jstack-glance-0 ubuntu-jstack-nova-compute-0
ubuntu-jstack-keystone-0 ubuntu-jstack-nova-volume-0
ubuntu-jstack-mysql-0 ubuntu-jstack-openstack-dashboard-0
ubuntu-jstack-nova-cloud-controller-0 ubuntu-jstack-rabbitmq-0
0
2 things are causing this failure.
a.) 'mount -t cgroup' just seems to show nothing (no idea why)
b.) /sys/fs/cgroup/*/lxc are root only readable
$ ls -l /sys/fs/cgroup/cpuacct/ | egrep "(libvirt|lxc)"
drwxr-xr-x 4 root root 0 Feb 1 19:55 libvirt
drwx------ 10 root root 0 Feb 1 20:28 lxc
Things to fix:
* need trailing / on 'ls -l' (in case its a symlink).
* figure out why those directories are read-only
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu15
ProcVersionSignature: Ubuntu 3.2.0-12.20-generic 3.2.2
Uname: Linux 3.2.0-12-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Wed Feb 1 15:30:12 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: Upgraded to precise on 2011-11-07 (86 days ago)
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug precise running-unity
--
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/925110
Title:
lxc-ls fails as non-root sometimes (second bug)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/925110/+subscriptions
More information about the Ubuntu-server-bugs
mailing list