TypeError "takes exactly 2 arguments (4 given)" raised while deploying

Bug #1383336 reported by Felipe Reyes on 2014-10-20
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
juju-deployer
High
Felipe Reyes

Bug Description

While running "juju deployer -c simple.yaml simple" I consistently get the following error:

2014-10-20 11:34:37 Starting deployment of simple
Traceback (most recent call last):
  File "/usr/bin/juju-deployer", line 9, in <module>
    load_entry_point('juju-deployer==0.4.1', 'console_scripts', 'juju-deployer')()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 127, in main
    run()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 225, in run
    importer.Importer(env, deployment, options).run()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 186, in run
    self.get_charms()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 67, in get_charms
    self.deployment.resolve(self.options.overrides or ())
  File "/usr/lib/python2.7/dist-packages/deployer/deployment.py", line 148, in resolve
    self.validate_placement()
  File "/usr/lib/python2.7/dist-packages/deployer/deployment.py", line 245, in validate_placement
    feedback.extend(placement.validate())
  File "/usr/lib/python2.7/dist-packages/deployer/service.py", line 96, in validate
    self.service.name, unit_placement[idx])
TypeError: error() takes exactly 2 arguments (4 given)
ERROR subprocess encountered error code 1

Packages:
* juju-core 1.20.9-0ubuntu1~14.10.1~juju
* juju-deployer 0.4.1-1

I'm using Ubuntu 14.10, but juju is installed from ppa:juju/stable. The configuration file used is attached.

Tags: cts Edit Tag help

Related branches

Felipe Reyes (freyes) wrote :
tags: added: cts
Felipe Reyes (freyes) wrote :

FYI, I get the same stacktrace when using juju-deployer 0.4.3 (installed from pypi)

Nobuto Murata (nobuto) on 2014-11-21
Changed in juju-deployer:
status: New → Confirmed
Felipe Reyes (freyes) on 2015-01-08
Changed in juju-deployer:
assignee: nobody → Felipe Reyes (freyes)
status: Confirmed → Fix Committed
Changed in juju-deployer:
importance: Undecided → High
Changed in juju-deployer:
status: Fix Committed → Fix Released
Lucas Eznarriaga (lezbar) wrote :

sorry, it was a mistake to change the status from Fix Committed -> Fix Released but I cannot revert it back.

Felipe Reyes (freyes) on 2015-04-07
Changed in juju-deployer:
status: Fix Released → Fix Committed
Changed in juju-deployer:
milestone: none → 0.5.0
Changed in juju-deployer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers