juju-deployer logs ERROR messages when called from mojo, then does the right thing anyway
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-deployer |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is reproducible with any of the mojo specs in lp:~tanuki/canonical-mojo-specs/trunk - alld the specs in ols/* reproduce this behavior.
What happens is that mojo creates a local juju charm repository, but juju-deployer errors if the charm is not specified either by:
* a cs: prefix
* a local: prefix
* an absolute path
* a CVS URI
However, juju does the right thing here, so the error message is spurious. These error messages make it extremely hard to figure out what's actually going wrong when a deployment fails, since it's hard to spot the one legitimate error amongst the many spurious errors.
Example output:
~~~
2015-09-16 16:25:42 [INFO] Running juju-deployer
2015-09-16 16:25:42 [INFO] Running: python /usr/bin/
appy-product-
2015-09-16 16:30:27 [INFO] 2015-09-16 16:25:43 [DEBUG] deployer.cli: Using runtime GoEnvironment on local
2015-09-16 16:25:43 [INFO] deployer.cli: Starting deployment of snappy-
2015-09-16 16:25:43 [DEBUG] deployer.import: Getting charms...
2015-09-16 16:25:43 [ERROR] deployer.charm: Service: haproxy has neither charm url or branch specified
2015-09-16 16:25:43 [ERROR] deployer.charm: Service: conn-check has neither charm url or branch specified
2015-09-16 16:25:43 [ERROR] deployer.charm: Service: nrpe-external-
2015-09-16 16:25:43 [ERROR] deployer.charm: Service: logstash-forwarder has neither charm url or branch specified
2015-09-16 16:25:43 [ERROR] deployer.charm: Service: apache2 has neither charm url or branch specified
2015-09-16 16:25:43 [ERROR] deployer.charm: Service: storage has neither charm url or branch specified
2015-09-16 16:25:43 [ERROR] deployer.charm: Service: postgresql has neither charm url or branch specified
2015-09-16 16:25:43 [ERROR] deployer.charm: Service: spec-manager has neither charm url or branch specified
2015-09-16 16:25:43 [DEBUG] deployer.deploy: Resolving configuration
2015-09-16 16:25:43 [DEBUG] deployer.env: Connecting to environment...
2015-09-16 16:25:43 [DEBUG] deployer.env: Connected to environment
2015-09-16 16:25:43 [INFO] deployer.import: Deploying services...
~~~
Related branches
- Tim Van Steenburgh (community): Approve
-
Diff: 17 lines (+1/-6)1 file modifieddeployer/charm.py (+1/-6)
description: | updated |
Changed in juju-deployer: | |
milestone: | none → 0.5.3 |
status: | New → Fix Committed |
Changed in juju-deployer: | |
milestone: | 0.5.3 → 0.6.0 |
Changed in juju-deployer: | |
status: | Fix Committed → Fix Released |