A containerless project should not require lxc to be installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Confirmed
|
Medium
|
Unassigned |
Bug Description
With a containerless project lxc should never get called and not have to be installed.
sudo: lxc-ls: command not found
2017-08-31 16:42:44 [ERROR] Error calling external process
Traceback (most recent call last):
File "/home/
args.func(args)
File "/home/
return method(*args, **kwargs)
File "/home/
project = mojo.project.
File "/home/
self.container = container_
File "/home/
Container.
File "/home/
if self.defined:
File "/home/
return self.check_state()
File "/home/
containers = subprocess.
File "/usr/lib/
raise CalledProcessEr
CalledProcessError: Command '('sudo', 'lxc-ls', '-1')' returned non-zero exit status 1
I agree we shouldn't fail if it's not installed, but we will have to try calling it to see what projects have been created, and then just move on if not available.