Deploying this bundle fails with python traceback

Bug #1478256 reported by Marco Ceppi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-deployer
Fix Released
Low
Tim Van Steenburgh

Bug Description

juju deployer -e gce -c http://cloud-benchmarks.org/submissions/17.yaml
2015-07-25 12:36:43 Using deployment bundle
2015-07-25 12:36:43 Starting deployment of bundle
2015-07-25 12:36:45 Deploying services...
2015-07-25 12:36:47 Deploying service cassandra using cs:trusty/cassandra-2
Traceback (most recent call last):
  File "/usr/bin/juju-deployer", line 9, in <module>
    load_entry_point('juju-deployer==0.4.3', 'console_scripts', 'juju-deployer')()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 130, in main
    run()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 228, in run
    importer.Importer(env, deployment, options).run()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 196, in run
    self.deploy_services()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 110, in deploy_services
    placement.get(0))
  File "/usr/lib/python2.7/dist-packages/deployer/env/base.py", line 99, in deploy
    params, self.log, "Error deploying service %r", name)
  File "/usr/lib/python2.7/dist-packages/deployer/env/base.py", line 21, in _check_call
    return _check_call(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deployer/utils.py", line 253, in _check_call
    params, cwd=cwd, stderr=stderr, env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
TypeError: coercing to Unicode: need string or buffer, dict found
ERROR subprocess encountered error code 1

Tags: benchmarking

Related branches

Revision history for this message
Kapil Thangavelu (hazmat) wrote : Re: [Bug 1478256] [NEW] Deploying this bundle fails with python traceback

that url tosses a 404 for me fwiw.

On Sat, Jul 25, 2015 at 12:38 PM, Marco Ceppi <email address hidden> wrote:

> Public bug reported:
>
> juju deployer -e gce -c http://cloud-benchmarks.org/submissions/17.yaml
> 2015-07-25 12:36:43 Using deployment bundle
> 2015-07-25 12:36:43 Starting deployment of bundle
> 2015-07-25 12:36:45 Deploying services...
> 2015-07-25 12:36:47 Deploying service cassandra using
> cs:trusty/cassandra-2
> Traceback (most recent call last):
> File "/usr/bin/juju-deployer", line 9, in <module>
> load_entry_point('juju-deployer==0.4.3', 'console_scripts',
> 'juju-deployer')()
> File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 130, in
> main
> run()
> File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 228, in run
> importer.Importer(env, deployment, options).run()
> File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py",
> line 196, in run
> self.deploy_services()
> File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py",
> line 110, in deploy_services
> placement.get(0))
> File "/usr/lib/python2.7/dist-packages/deployer/env/base.py", line 99,
> in deploy
> params, self.log, "Error deploying service %r", name)
> File "/usr/lib/python2.7/dist-packages/deployer/env/base.py", line 21,
> in _check_call
> return _check_call(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/deployer/utils.py", line 253, in
> _check_call
> params, cwd=cwd, stderr=stderr, env=os.environ)
> File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
> process = Popen(stdout=PIPE, *popenargs, **kwargs)
> File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
> errread, errwrite)
> File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
> raise child_exception
> TypeError: coercing to Unicode: need string or buffer, dict found
> ERROR subprocess encountered error code 1
>
> ** Affects: juju-deployer
> Importance: Undecided
> Status: New
>
>
> ** Tags: benchmarking
>
> --
> You received this bug notification because you are subscribed to juju-
> deployer.
> Matching subscriptions: deployer
> https://bugs.launchpad.net/bugs/1478256
>
> Title:
> Deploying this bundle fails with python traceback
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju-deployer/+bug/1478256/+subscriptions
>

Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

The error occurs b/c the bundle in question defines constraints as a dict instead of a string. While this is clearly not deployer's fault, it would be simple to support constraints as list or dict, and in fact the official docs (https://jujucharms.com/docs/devel/charms-bundles#service-constraints-in-a-bundle) already claim that a list will work.

Changed in juju-deployer:
status: New → Triaged
importance: Undecided → Low
Marco Ceppi (marcoceppi)
Changed in juju-deployer:
status: Triaged → Fix Committed
Changed in juju-deployer:
milestone: none → 0.5.0
assignee: nobody → Tim Van Steenburgh (tvansteenburgh)
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.