There’s a window where adding a relation can result in a charm putting an empty address in relation data after it calls network-get
to retrieve the info. The other side of the relation doing a relation-get
will then not get what is needed.
There will be log messages like this:
WARNING worker.uniter.jujuc network-get.go:222 The address "" is neither an IP address nor a resolvable hostname
INFO juju-log server:0: network info {'bind-addresses': [{'macaddress': '', 'interfacename': '', 'addresses': [{'hostname': '', 'address': '', 'cidr': ''}]}], 'egress-subnets': ['/128'], 'ingress-addresses': ['', '10.152.183.194']}
We’re working on a fix. Until then you can work around then issue by delaying adding relations until juju status
shows the applications/units as active with an IP address.