deployer 404s on new published charms

Bug #1531999 reported by Kevin W Monroe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-deployer
Fix Released
High
Brad Crittenden

Bug Description

benchmark-gui is a new charm published with charm2:

https://jujucharms.com/benchmark-gui/trusty/0

If I put that in a bundle, deployer 404s:

$ cat test.yaml
services:
  bui:
    charm: cs:trusty/benchmark-gui-0
series: trusty

$ juju-deployer -v -c test.yaml
2016-01-07 20:52:58 Using runtime GoEnvironment on amazon
2016-01-07 20:52:58 Using deployment test.yaml
2016-01-07 20:52:58 Starting deployment of test.yaml
2016-01-07 20:52:58 Getting charms...
2016-01-07 20:52:58 Cache dir /home/vagrant/.juju/.deployer-store-cache/cs_trusty_benchmark-gui-0
2016-01-07 20:52:58 Retrieving store charm cs:trusty/benchmark-gui-0
Traceback (most recent call last):
  File "/usr/local/bin/juju-deployer", line 9, in <module>
    load_entry_point('juju-deployer==0.6.0', 'console_scripts', 'juju-deployer')()
  File "/usr/local/lib/python2.7/dist-packages/deployer/cli.py", line 135, in main
    run()
  File "/usr/local/lib/python2.7/dist-packages/deployer/cli.py", line 234, in run
    importer.Importer(env, deployment, options).run()
  File "/usr/local/lib/python2.7/dist-packages/deployer/action/importer.py", line 292, in run
    self.get_charms()
  File "/usr/local/lib/python2.7/dist-packages/deployer/action/importer.py", line 146, in get_charms
    no_local_mods=self.options.no_local_mods)
  File "/usr/local/lib/python2.7/dist-packages/deployer/deployment.py", line 188, in fetch_charms
    charm.fetch()
  File "/usr/local/lib/python2.7/dist-packages/deployer/charm.py", line 149, in fetch
    self._fetch_store_charm()
  File "/usr/local/lib/python2.7/dist-packages/deployer/charm.py", line 190, in _fetch_store_charm
    ufh = urllib2.urlopen(store_url)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

The url it's trying to hit is:

https://store.juju.ubuntu.com/charm/trusty/benchmark-gui-0

Which doesn't exist. The correct URL for this charm is:

https://api.jujucharms.com/charmstore/charm/trusty/benchmark-gui-0

Can we move deployer to use api.jujucharms.com instead of store.juju.ubuntu.com? Fwiw, my deployer version is:

juju-deployer-0.6.1-1~ubuntu15.04.1~ppa1

Related branches

Brad Crittenden (bac)
Changed in juju-deployer:
assignee: nobody → Brad Crittenden (bac)
status: New → In Progress
Changed in juju-deployer:
milestone: none → 0.6.2
importance: Undecided → High
Changed in juju-deployer:
status: In Progress → Fix Committed
Revision history for this message
Cory Johns (johnsca) wrote :

Looks like pypi was updated but not the apt package.

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.