← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1275615] [NEW] keystone-manage db_sync fails in a dual-stacked environment

 

Public bug reported:

Hello Stackers!

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 contains:

---
# 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 have this:

---
bind-address = ::
---

My /etc/keystone/keystone.conf contains:

---
connection = mysql://keystoneUser:keystonePass@xxxxxxxxxxxxxxxxxxxxxxx/keystone
---

But, this way, "keystone-manage db_sync" does not work and, if I replace
keystone.conf connection line into this:

---
connection = mysql://keystoneUser:keystonePass@xxxxxxxxxx.100/keystone
---

Then, "keystone-manage db_sync" works! So, after db_sync finishes, I
return it back to the FQDN, where it resolves to IPv6 address and it
works fine (keystone user-list, etc, via IPv6)...

I tried it 3 times, always re-installing Ubuntu 14.04 from scratch, same
result... "keystone-make db_sync" doesn't start its operations... I'll
try again tomorrow, to see if it is just me, or not...     =)

Best!
Thiago

** Affects: keystone
     Importance: Undecided
         Status: New


** Tags: ipv4 ipv6 lts openstack ubuntu

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1275615

Title:
  keystone-manage db_sync fails in a dual-stacked environment

Status in OpenStack Identity (Keystone):
  New

Bug description:
  Hello Stackers!

  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 contains:

  ---
  # 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 have this:

  ---
  bind-address = ::
  ---

  My /etc/keystone/keystone.conf contains:

  ---
  connection = mysql://keystoneUser:keystonePass@xxxxxxxxxxxxxxxxxxxxxxx/keystone
  ---

  But, this way, "keystone-manage db_sync" does not work and, if I
  replace keystone.conf connection line into this:

  ---
  connection = mysql://keystoneUser:keystonePass@xxxxxxxxxx.100/keystone
  ---

  Then, "keystone-manage db_sync" works! So, after db_sync finishes, I
  return it back to the FQDN, where it resolves to IPv6 address and it
  works fine (keystone user-list, etc, via IPv6)...

  I tried it 3 times, always re-installing Ubuntu 14.04 from scratch,
  same result... "keystone-make db_sync" doesn't start its operations...
  I'll try again tomorrow, to see if it is just me, or not...     =)

  Best!
  Thiago

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1275615/+subscriptions


Follow ups

References