project-new both should and should not be run as root
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Fix Released
|
Undecided
|
Iain Lane |
Bug Description
This just happened:
laney@raleigh> mojo project-new $MOJO_PROJECT -s $MOJO_SERIES --container containerless
2019-06-21 11:43:43 [ERROR] This sub-command, project-new, must be run as root
laney@raleigh> sudo mojo project-new $MOJO_PROJECT -s $MOJO_SERIES --container containerless
[sudo] password for laney:
This should not be run as root, exiting.
Possibly use --break_everything option if you are really sure!
laney@raleigh> env | grep MOJO
MOJO_SERIES=bionic
MOJO_PROJECT=
MOJO_SPEC=
MOJO_STAGE=devel
MOJO_WORKSPACE=
laney@raleigh> snap info mojo
name: mojo
summary: Mojo - Continuous Delivery for Juju
publisher: Stuart Bishop (stub)
contact: https:/
license: unset
description: |
Mojo is a system of configuration and tools for verifying the success of Juju environment
deployments. It's available as an open source project under the GPLv3 license on Launchpad.
commands:
- mojo
snap-id: 8GZ3t2c3Ah0N6Ht
tracking: stable
refresh-date: 22 days ago, at 16:55 BST
channels:
stable: 0.5.1+492 2018-11-29 (61) 60MB classic
candidate: 0.5.1+489 2018-07-13 (57) 61MB classic
beta: 0.5.1+489 2018-07-13 (57) 61MB classic
edge: 0.5.1+501 2019-05-20 (69) 61MB classic
installed: 0.5.1+492 (61) 60MB classic
Related branches
- Tom Haddon: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 109 lines (+28/-13)3 files modifieddocs/mojo/readme.md (+16/-1)
mojo/cli.py (+7/-7)
mojo/project.py (+5/-5)
description: | updated |
Changed in mojo: | |
status: | In Progress → Fix Committed |
Changed in mojo: | |
status: | Fix Committed → Fix Released |
It's because of the --container containerless. Should be fixed in the attached MP