Comment 3 for bug 1577556

Revision history for this message
Trent Lloyd (lathiat) wrote : Re: mysql charm is failing to get unit-get private-address in the install hook

I saw this same issue with someone trying to deploy openstack-base in #juju.. same issue and error on multiple charms. Xenial+1.25
It's unclear to me why private-address would fail to fetch, works OK when I try it manually and just returned the public-address

One thing I also saw that may or may not be related, particularly noted with the lxd provider, is that if you have both IPv4+IPv6 then the private/public address randomly has either the IPv4 or IPv6 address - if you deploy 4 units you might get 1 IPv6 and 3 IPv4 or some other permuation. This causes issues with this code where get_host_ip will fail, but the juju get-address part works fine. So probably it's a separate issue but I mention it just in case it twigs something here.