Using juju-deployer with local charms

Marco Ceppi marco.ceppi at canonical.com
Thu Aug 1 02:40:54 UTC 2013


Is it possibly to point the branch attribute of a service to a local bzr
path? I've attempted the following

{
  "local-core": {
    "services": {
      "wordpress": {
        "branch": "lp:charms/wordpress"
      },
      "relation-sentry": {
        "branch": "/tmp/kh7c1d/relation-sentry"
      },
    },
 ...

Where /tmp/kh7c1d/relation-sentry is a bzr repo and charm. When running
deployer the following error occurs:

2013-07-31 22:34:42 Starting deployment of local-core
Traceback (most recent call last):
  File "/usr/bin/juju-deployer", line 9, in <module>
    load_entry_point('juju-deployer==0.2.2', 'console_scripts',
'juju-deployer')()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 111, in main
    run()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 193, in run
    importer.Importer(env, deployment, options).run()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line
139, in run
    self.get_charms()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line
47, in get_charms
    no_local_mods=self.options.no_local_mods)
  File "/usr/lib/python2.7/dist-packages/deployer/deployment.py", line 112,
in fetch_charms
    charm.fetch()
  File "/usr/lib/python2.7/dist-packages/deployer/charm.py", line 96, in
fetch
    self.vcs.branch()
AttributeError: 'NoneType' object has no attribute 'branch'

This is using juju-deployer 0.2.1+bzr109-0~22~raring1 Is there a format for
local paths to charms or does this need to be filed as a bug/feature
request?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130731/7daee263/attachment-0001.html>


More information about the Juju mailing list