workspace-new fails with permission errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Fix Released
|
High
|
Unassigned |
Bug Description
workspace-new is attempting to read lxc config files, but does not have permission to do so. /var/lib/lxc is only accessible to root:
stub@belch:
Traceback (most recent call last):
File "/usr/bin/mojo", line 9, in <module>
load_
File "/usr/lib/
run_
File "/usr/lib/
args.func(args)
File "/usr/lib/
project = mojo.Project(
File "/usr/lib/
self.container = container_
File "/usr/lib/
self.
File "/usr/lib/
return method(self, *args, **kwargs)
File "/usr/lib/
with open(os.
IOError: [Errno 13] Permission denied: '/var/lib/
Related branches
- Tim Kuhlman (community): Approve
- Stuart Bishop (community): Approve
- Paul Gear (community): Approve
-
Diff: 81 lines (+57/-0)1 file modifiedmojo/cli.py (+57/-0)
information type: | Proprietary → Public |
affects: | canonical-mojo → mojo |
Changed in mojo: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in mojo: | |
status: | Fix Committed → Fix Released |
I think this is related to LP: #1412692 (Need to manually fix permissions after install). LP: #1420379 is of interest as well to use unprivileged containers.