containerless still attempts sudo lxc-ls
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Incomplete
|
Low
|
Unassigned | ||
OpenStack Charm Test Infra |
Confirmed
|
Medium
|
Unassigned |
Bug Description
OSCI slaves use "containerless" mojo. Even with containerless, container-specific commands are attempted by mojo.
00:03:39.139 Traceback (most recent call last):
00:03:39.139 File "/usr/lib/
00:03:39.139 args.func(args)
00:03:39.139 File "/usr/lib/
00:03:39.139 return method(*args, **kwargs)
00:03:39.139 File "/usr/lib/
00:03:39.139 project = mojo.project.
00:03:39.139 File "/usr/lib/
00:03:39.139 self.container = container_
00:03:39.139 File "/usr/lib/
00:03:39.139 if self.defined:
00:03:39.139 File "/usr/lib/
00:03:39.139 return self.check_state()
00:03:39.139 File "/usr/lib/
00:03:39.139 containers = subprocess.
00:03:39.139 File "/usr/lib/
00:03:39.139 raise CalledProcessEr
00:03:39.139 CalledProcessError: Command '('sudo', 'lxc-ls', '-1')' returned non-zero exit status 1
Changed in charm-test-infra: | |
status: | New → Confirmed |
importance: | Undecided → High |
description: | updated |
summary: |
- containerless still attempts sudo lxc-ls, fails with no sudo privs + containerless still attempts sudo lxc-ls |
description: | updated |
Changed in charm-test-infra: | |
importance: | High → Medium |
Changed in mojo: | |
importance: | Undecided → Low |
Can you confirm what version of Mojo you're using, and what specific command you're running that triggers this error? It looks like it's invoking code that should only be triggered for a project of LXC container type. Can you also include the contents of /srv/mojo/ $MOJO_PROJECT/ $MOJO_SERIES/ .project ? That should confirm it's a containerless project in the containerclass variable.