Ubuntu Pastebin

Paste from arosales at Wed, 29 Jun 2016 21:07:55 +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
# Install hook error Error, from the unit

2016-06-29 20:55:17 INFO juju-log Invoking reactive handler: reactive/mongodb.py:36:configure
2016-06-29 20:55:18 INFO install Traceback (most recent call last):
2016-06-29 20:55:18 INFO install   File "/var/lib/juju/agents/unit-mongodb-0/charm/hooks/install", line 19, in <module>
2016-06-29 20:55:18 INFO install     main()
2016-06-29 20:55:18 INFO install   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/__init__.py", line 78, in main
2016-06-29 20:55:18 INFO install     bus.dispatch()
2016-06-29 20:55:18 INFO install   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 434, in dispatch
2016-06-29 20:55:18 INFO install     _invoke(other_handlers)
2016-06-29 20:55:18 INFO install   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 417, in _invoke
2016-06-29 20:55:18 INFO install     handler.invoke()
2016-06-29 20:55:18 INFO install   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 291, in invoke
2016-06-29 20:55:18 INFO install     self._action(*args)
2016-06-29 20:55:18 INFO install   File "/var/lib/juju/agents/unit-mongodb-0/charm/reactive/mongodb.py", line 40, in configure
2016-06-29 20:55:18 INFO install     m.configure()
2016-06-29 20:55:18 INFO install TypeError: configure() missing 1 required positional argument: 'config'
2016-06-29 20:55:18 ERROR juju.worker.uniter.operation runhook.go:107 hook "install" failed: exit status 1

# code
https://github.com/marcoceppi/layer-mongodb/blob/master/reactive/mongodb.py#L36

 36 @when('mongodb.installed')
 37 @when_not('mongodb.ready')
 38 def configure():
 39     m = mongodb.mongodb(config().get('version'))
 40     m.configure()
 41     service_restart('mongodb')
 42     set_state('mongodb.ready')
Download as text