influxdb fails to relate to telegraf per instructions

Bug #1765197 reported by Richard Harding
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
InfluxDB Charm
New
Undecided
Unassigned

Bug Description

When relating I get the following traceback:

2018-04-18 20:20:16 INFO juju-log query:11: Invoking reactive handler: reactive/influxdb.py:257:query_available
2018-04-18 20:20:16 ERROR juju-log query:11: Hook error:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-influxdb-2/.venv/lib/python3.5/site-packages/charms/reactive/__init__.py", line 72, in main
    bus.dispatch(restricted=restricted_mode)
  File "/var/lib/juju/agents/unit-influxdb-2/.venv/lib/python3.5/site-packages/charms/reactive/bus.py", line 375, in dispatch
    _invoke(other_handlers)
  File "/var/lib/juju/agents/unit-influxdb-2/.venv/lib/python3.5/site-packages/charms/reactive/bus.py", line 351, in _invoke
    handler.invoke()
  File "/var/lib/juju/agents/unit-influxdb-2/.venv/lib/python3.5/site-packages/charms/reactive/bus.py", line 173, in invoke
    self._action(*args)
  File "/var/lib/juju/agents/unit-influxdb-2/charm/reactive/influxdb.py", line 261, in query_available
    query.configure(port=port)
TypeError: configure() missing 2 required positional arguments: 'username' and 'password'

Looking at the query argument it's part of <relations.influxdb-api.provides.InfluxdbApi object at 0x7f06915c0978> but looking at the interface I don't see any query method on that provides class?

https://github.com/ChrisMacNaughton/interface-influxdb-api/blob/master/provides.py

Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :

Can you please provice a little bit more details about which influxdb charm you are using, as well as the telegraf one?

I small bundle would be the ideal thing to show what you're trying to accomplish

Revision history for this message
Richard Harding (rharding) wrote :

Sure thing, I just used the promulgated current telegraf and influxdb charms. A dump looks like

series: xenial
applications:
  influxdb:
    charm: 'cs:~influxdb-charmers/influxdb-15'
    num_units: 1
    expose: true
  telegraf2:
    charm: 'cs:telegraf-11'
relations:
  - - 'influxdb:query'
    - 'telegraf2:influxdb-api'

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.