juju-deployer logs ERROR messages when called from mojo, then does the right thing anyway

Bug #1496551 reported by Thomi Richards
6
This bug affects 1 person
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/juju-deployer -c /srv/mojo/ols-results/trusty/w7/charms/ols/mojo-ols-spec-manager/relations -c /srv/mojo/ols-results/trusty/w7/charms/local.cfg -s 60 -d sn
appy-product-integration -W -u
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-product-integration
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-master has neither charm url or branch specified
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

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