"Deployment not found" when running mojo deploy-show
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
$ mojo deploy-show --options target=deployable config=services local=/
2018-02-22 18:15:25 [INFO] Using pre-existing container class lxc
2018-02-22 18:15:26 [WARNING] Deployment 'deployable' not found. Available dpa
2018-02-22 18:15:26 [ERROR] Unknown error
Traceback (most recent call last):
File "/usr/lib/
args.func(args)
File "/usr/lib/
phase.
File "/usr/lib/
deployment = deployer_
File "/usr/lib/
raise ErrorExit()
ErrorExit
This project was working fine before, but now, when trying to run some manifests, I got this error which I hadn't seen before. Based on this, Tom suggested I file a bug:
Deployment 'deployable' not found. Available dpa
I'm happy to run any diagnostic commands or provide more info as needed.
Thanks!
Changed in mojo: | |
status: | New → Triaged |
importance: | Undecided → Low |
I think the error message could be improved here, but what it's telling you is that it can't find the target "deployment" and that you should use a target of "dpa" (this corresponds to the top level target name you want to use from your deployment config file). Also, the "local" config should likely just be local.yaml rather than the full path (although that may work too).
If you can confirm, I'll update things to give a more informative error here (and likely not traceback, just print the error and exit non-zero).