lxc-ls requires root access after deploying an LXC instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
High
|
Clint Byrum | ||
juju (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
lxc (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
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/environme
environments:
local:
type: local
data-dir: /tmp/juju-local
admin-secret: abcdefghijklmno
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>
9. $ juju deploy --repository=
10. $ sleep 60 ; lxc-ls
<yourusername>
/usr/bin/lxc-ls: line 35: cd: /sys/fs/
ls: cannot access <yourusername>
$ ls -ld /sys/fs/
drwx------ 3 root root 0 Feb 10 15:39 /sys/fs/
But /sys/fs/
Related branches
- Kapil Thangavelu (community): Approve
-
Diff: 2440 lines (+724/-859)29 files modifiedMakefile (+1/-1)
juju/agents/tests/test_base.py (+1/-1)
juju/control/options.py (+1/-1)
juju/lib/lxc/__init__.py (+72/-94)
juju/lib/lxc/data/juju-create (+0/-156)
juju/lib/lxc/data/lxc.conf (+0/-3)
juju/lib/lxc/tests/test_lxc.py (+90/-92)
juju/lib/service.py (+19/-7)
juju/lib/tests/test_service.py (+17/-1)
juju/machine/tests/data/test_get_container (+44/-0)
juju/machine/tests/test_unit_deployment.py (+24/-40)
juju/machine/unit.py (+55/-59)
juju/providers/common/cloudinit.py (+79/-7)
juju/providers/common/tests/data/cloud_init_branch (+1/-1)
juju/providers/common/tests/data/cloud_init_branch_trunk (+1/-1)
juju/providers/common/tests/data/cloud_init_no_machine_id (+10/-0)
juju/providers/common/tests/data/cloud_init_ppa_apt_proxy (+39/-0)
juju/providers/common/tests/test_cloudinit.py (+36/-2)
juju/providers/common/utils.py (+7/-1)
juju/providers/ec2/tests/data/launch_cloud_init_branch (+1/-1)
juju/providers/local/__init__.py (+17/-14)
juju/providers/local/agent.py (+3/-9)
juju/providers/local/files.py (+11/-9)
juju/providers/local/network.py (+66/-118)
juju/providers/local/tests/test_agent.py (+13/-4)
juju/providers/local/tests/test_files.py (+9/-51)
juju/providers/local/tests/test_network.py (+106/-184)
juju/providers/local/tests/test_provider.py (+1/-1)
setup.py (+0/-1)
Changed in juju (Ubuntu): | |
status: | New → Confirmed |
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in juju (Ubuntu): | |
importance: | Undecided → High |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 0.6 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Thanks, Jamie, I will try to reproduce with your recipe.