Ubuntu Pastebin

Paste from luqas at Tue, 31 Mar 2015 16:26:19 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
In [5]: deployment.add('midonet-api', charm='/home/ubuntu/.juju/charms/trusty/midonet-api', units=1, branch='local', placement=10, series='trusty')
Out[5]: {'branch': '/tmp/charm3vut5loi/midonet-api', 'num_units': 1, 'to': 10}

In [6]: deployment.setup(timeout=900)
2015-03-31 12:44:51 Starting deployment of manual
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 188, 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)
---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-6-609a0b7df572> in <module>()
----> 1 deployment.setup(timeout=900)

/usr/lib/python3/dist-packages/amulet/deployer.py in setup(self, timeout, cleanup)
    349
    350             with self.deploy_w_timeout_and_dir(timeout, self.deployer_dir):
--> 351                 subprocess.check_call(shlex.split(cmd))
    352
    353         self.sentry = Talisman(self.services)

/usr/lib/python3.4/subprocess.py in check_call(*popenargs, **kwargs)
    555         if cmd is None:
    556             cmd = popenargs[0]
--> 557         raise CalledProcessError(retcode, cmd)
    558     return 0
    559

CalledProcessError: Command '['juju-deployer', '-W', '-L', '-c', '/tmp/amulet-juju-deployer-j87jt788/deployer-schema.json', '-e', 'manual', '-t', '1000', 'manual']' returned non-zero exit status 1

In [7]: deployment.add('midonet-api', charm='/home/ubuntu/.juju/charms/trusty/midonet-api', units=1, branch='local', placement='10', series='trusty')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Download as text