In juju itself, the controller sets the data bag "private-address" in 2 places:
1. when the unit first enters a relation
settings["private-address"] = ingressAddress
2. When network info is refreshed
relSettings.Set("private-address", ingressAddress)
It's hard to see how this is getting set to anything other than a valid address by juju. Logs would help.
In juju itself, the controller sets the data bag "private-address" in 2 places:
1. when the unit first enters a relation
settings[ "private- address" ] = ingressAddress
2. When network info is refreshed
relSettings. Set("private- address" , ingressAddress)
It's hard to see how this is getting set to anything other than a valid address by juju.
Logs would help.