2.7.6/2.8.0: subordinates get empty relation data from relation-get

Bug #1885185 reported by Heather Lanigan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

cs:telegraph-6 fails juju-info-relation-joined hook with 2.7.6, but not with 2.6.10.

with 2.7.6 and 2.8.0:
$ juju run --unit telegraf/0 -- 'relation-get -r 0 - ubuntu/0'
{}

with 2.6.10:
$ juju run --unit telegraf/0 -- 'relation-get -r 0 - ubuntu/0'
egress-subnets: 10.62.162.107/32
ingress-address: 10.62.162.107
private-address: 10.62.162.107

unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined Traceback (most recent call last):
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined File "/var/lib/juju/agents/unit-telegraf-0/charm/hooks/juju-info-relation-joined", line 19, in <module>
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined main()
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined File "/var/lib/juju/agents/unit-telegraf-0/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 78, in main
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined bus.dispatch()
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined File "/var/lib/juju/agents/unit-telegraf-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 423, in dispatch
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined _invoke(other_handlers)
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined File "/var/lib/juju/agents/unit-telegraf-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 406, in _invoke
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined handler.invoke()
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined File "/var/lib/juju/agents/unit-telegraf-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 280, in invoke
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined self._action(*args)
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined File "/var/lib/juju/agents/unit-telegraf-0/charm/reactive/telegraf.py", line 221, in configure_telegraf
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined if get_remote_unit_name() is None:
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined File "/var/lib/juju/agents/unit-telegraf-0/charm/reactive/telegraf.py", line 114, in get_remote_unit_name
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined if rel['private-address'] == hookenv.unit_private_ip():
unit-telegraf-0: 20:09:53 DEBUG unit.telegraf/0.juju-info-relation-joined KeyError: 'private-address'
unit-telegraf-0: 20:09:53 ERROR juju.worker.uniter.operation hook "juju-info-relation-joined" failed: exit status 1

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

The work around for telegraf is upgrade to the latest charm revision.

summary: - 2.7.6/2.8.10: subordinates get empty relation data from relation-get
+ 2.7.6/2.8.0: subordinates get empty relation data from relation-get
Pen Gale (pengale)
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.9-beta1
Changed in juju:
milestone: 2.9-beta1 → 2.9-rc1
Pen Gale (pengale)
Changed in juju:
importance: High → Medium
milestone: 2.9-rc1 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
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.