[Bug 930430] [NEW] lxc-ls requires root access after deploying an LXC instance

Jamie Strandboge jamie at ubuntu.com
Fri Feb 10 21:50:30 UTC 2012


Public bug reported:

On up to date precise:

1. $ sudo apt-get install juju charm-tools apt-cacher-ng zookeeper
libvirt-bin lxc

2. $ adduser <yourusername> libvirtd

3. logout and back in

4. $ mkdir .juju

5. create the juju environments configuration
$ cat > .juju/environments.yaml <<EOF
environments:
  local:
    type: local
    data-dir: /tmp/juju-local
    admin-secret: abcdefghijklmnopqrstuvwxyz1234567890
    control-bucket: foo-bucket
    default-series: oneiric
EOF

6. ssh-keygen -t rsa -b 2048 # only if needed

7. $ juju bootstrap

8. $ lxc-ls # ok
<yourusername>-local-0-template

9. $ juju deploy --repository=/usr/share/doc/juju/examples
local:oneiric/wordpress

10. $ sleep 60 ; lxc-ls
<yourusername>-local-0-template	<yourusername>-local-wordpress-1
/usr/bin/lxc-ls: line 35: cd: /sys/fs/cgroup/cpuset///lxc: Permission denied
ls: cannot access <yourusername>-local-wordpress-1: No such file or directory


$ ls -ld /sys/fs/cgroup/cpuset///lxc
drwx------ 3 root root 0 Feb 10 15:39 /sys/fs/cgroup/cpuset///lxc

But /sys/fs/cgroup/cpuset///lxc was 700 before I deploy the juju
instance.

** Affects: juju (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: lxc (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/930430

Title:
  lxc-ls requires root access after deploying an LXC instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/juju/+bug/930430/+subscriptions



More information about the Ubuntu-server-bugs mailing list