unit-get and ipv6 addresses

Jake Kugel jkugel at us.ibm.com
Fri Feb 27 20:19:14 UTC 2015


Hi,

I am using juju 1.21.1-trusty-i386 and deploying to a manual environment, 
and had a problem deploying wordpress following the getting started page 
here [1].  When I tried to view wordpress with a browser it gave me an 
"Error establishing a database connection", and from a little bit of 
digging found that wordpress was configured with an ipv6 address for the 
mysql host.  Switching this manually to the ipv4 address fixed the 
problem.

Assuming for a minute that wordpress doesn't support ipv6, is there a way 
to avoid having it configured with an ipv6 address?  I see that unit-get 
private-address is returning the ipv6 address for the mysql host, is that 
normal behavior? On the mysql host machine log, I see this:

2015-02-27 14:56:59 INFO juju.worker.machiner machiner.go:94 setting 
addresses for machine-2 to ["local-machine:127.0.0.1" 
"public:9.114.192.29" "local-machine:::1" 
"local-cloud:fd55:faaf:e1ab:38d:944a:7931:9b4c:c621" 
"local-cloud:fd55:faaf:e1ab:38d:a8c0:f5da:7109:1e67" 
"local-cloud:fd55:faaf:e1ab:38d:f816:3eff:fee2:f0fc"]

Thanks in advance for any advice,
Jake Kugel

[1]  https://jujucharms.com/docs/getting-started




More information about the Juju mailing list