Comment 3 for bug 1876029

Revision history for this message
Haw Loeung (hloeung) wrote :

As discussed with Ian (wallyworld):

|14:34 <wallyworld_> hloeung: if i recall, private-address is set when the relation is first set up. it's use is deprecated
in favour of using network-get. i wonder what that shows. typically i think an address chnage on a host machine generates a
config-change hook and from there you can get any new address values via unit-get private-address, but network-get is
preferred

network-get provides the correct info:

| ubuntu@ip-10-127-251-15:~$ sudo juju-run ubuntu-repository-cache/2 "network-get website"
| bind-addresses:
| - macaddress: ""
| interfacename: ""
| addresses:
| - hostname: ""
| address: 10.127.251.15
| cidr: ""
| egress-subnets:
| - 10.127.251.15/32
| ingress-addresses:
| - 10.127.251.15

So the HAProxy charm should use network-get rather than private-address.