Incorrect IPv6 address format in mysql user-specific config file

Bug #1516776 reported by Johan Pas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Johan Pas

Bug Description

stack.sh creates a user-specific configuration file ~/.my.cnf for mysql. If devstack is installed with SERVICE_IP_VERSION=6 option in local.conf, you get an error when you run mysql command: "ERROR 2005 (HY000): Unknown MySQL server host '[::1]' (0)"
This seems to be due to incorrect IPv6 address format in the .my.cnf file.

Johan Pas (j20012)
Changed in devstack:
assignee: nobody → Johan Pas (j20012)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/246043

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/246043
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=199d857442108326959d391c337e3b02b98a1b1e
Submitter: Jenkins
Branch: master

commit 199d857442108326959d391c337e3b02b98a1b1e
Author: Johan Pas <email address hidden>
Date: Tue Nov 17 00:56:25 2015 +0100

    Remove brackets from IPv6 address in mysql cfgfile

    stack.sh creates a user-specific configuration file ~/.my.cnf for mysql.
    If devstack is installed with SERVICE_IP_VERSION=6 option in local.conf,
    the IPv6 host address was stored in the ~/.my.cnf file with square
    brackets. However mysql does not use bracketing for IPv6 addresses,
    resulting in 'Unknown MySQL server host' error when 'mysql' command is
    run. With this patch IPv6 host address is written to ~/.my.cnf without
    brackets.

    Closes-Bug: #1516776
    Change-Id: I27a7be8c75cf6b09b4a75dc4c9d09cd36bc5ac81

Changed in devstack:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.