[openstack-dev] keystone-manage db_sync doesn't work if [database] connection points to IPv6 address
Martinx - ジェームズ
thiagocmartinsc at gmail.com
Sun Feb 2 15:15:52 UTC 2014
Guys,
I'm trying to install IceHouse-2 in a dual-stacked environment (Ubuntu
14.04) but, "keystone-manage db_sync" doesn't work if db connection points
to a IPv6 address, like this:
My /etc/network/interfaces looks like:
---
# The loopback network interface
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto eth0
# IPv6
iface eth0 inet6 static
address 2001:1291:XXXX:fffa::aaaa
netmask 64
gateway 2001:1291:XXXX:fffa::1
# dns-* options are implemented by the resolvconf package, if
installed
dns-search domain.com
dns-nameservers 2001:4860:4860::8844
# IPv4
iface eth0 inet static
address 192.168.XX.100
netmask 24
gateway 192.168.XX.1
# dns-* options are implemented by the resolvconf package, if
installed
dns-nameservers 8.8.4.4 8.8.8.8
dns-search domain.com
---
My /etc/hosts contains:
---
2001:1291:XXXX:fffa::aaaa controller-1.domain.com controller-1
192.168.XX.100 controller-1.domain.com controller-1
---
MySQL binds on both IPv4 and IPv6, my.cnf like this:
---
bind-address = ::
---
My /etc/keystone/keystone.conf contains:
---
connection = mysql://
keystoneUser:keystonePass at controller-1.domain.com/keystone
---
So, this way, "keystone-manage db_sync" does not work but, if I replace
keystone.conf connection line into this:
---
connection = mysql://keystoneUser:keystonePass@192.168.XX.100/keystone
---
It works! Then, after db_sync, I return it back to FQDN, where it resolves
to IPv6 address and it works fine...
Cheers!
Thiago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140202/cb89a599/attachment.html>
More information about the OpenStack-dev
mailing list