"Deployment not found" when running mojo deploy-show

Bug #1751108 reported by Daniel Manrique
6
This bug affects 1 person
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=/srv/mojo/mojo-prod-ols-deployable/trusty/production/local/local.yaml
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/python2.7/dist-packages/mojo/cli.py", line 628, in run_with_args
    args.func(args)
  File "/usr/lib/python2.7/dist-packages/mojo/cli.py", line 55, in show_deploy
    phase.show(project, workspace, args.stage)
  File "/usr/lib/python2.7/dist-packages/mojo/phase.py", line 744, in show
    deployment = deployer_config.get(deploy_name)
  File "/usr/lib/python2.7/dist-packages/deployer/config.py", line 78, in get
    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!

Revision history for this message
Tom Haddon (mthaddon) wrote :

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).

Revision history for this message
Daniel Manrique (roadmr) wrote :

A nicer error would be good, but in the meanwhile we found out what needed to be done, and yes, we were fumbling the project name. Sorry for the spam!

export PROJECT_NAME=dpa

then manifests run correctly.

Tom Haddon (mthaddon)
Changed in mojo:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.