tripleo-heat-templates: support recent version of the galera WSREP provider

Bug #1622755 reported by Damien Ciabrini
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Emilien Macchi
Mitaka
Fix Released
High
Emilien Macchi

Bug Description

As seen in bugs #1622613, the galera provider version 25.3.12 (and above) behaves differently than version 25.3.5 when processing the provider option:

   wsrep_provider_options = gmcast.listen_addr=tcp://[172.16.2.15]:4567

This value is being set by t-h-t and has square brackets in the address to tell galera to listen to either an IPv4 or IPv6 address at startup.

In newer version of the galera provider, joining nodes won't connect to the cluster if the listen address is an IPv4 and contains brackets.

First tests done in bugs #1622613 show that removing brackets makes the bootstrap work again for IPv4 use cases.

One should update the generated galera config so that it works with latest galera provider, both with IPv4 and IPv6.

Changed in tripleo:
milestone: none → newton-rc1
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Emilien Macchi (emilienm) wrote :
Changed in tripleo:
assignee: nobody → Emilien Macchi (emilienm)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/371029

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/371031

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/mitaka)

Reviewed: https://review.openstack.org/371029
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=b9f829a39126e51e9c4557c657fe866ae64196cf
Submitter: Jenkins
Branch: stable/mitaka

commit b9f829a39126e51e9c4557c657fe866ae64196cf
Author: Emilien Macchi <email address hidden>
Date: Thu Sep 15 13:55:23 2016 -0400

    [mitaka-only] mysql: never add brackets to mysql_bind_host

    The patch was submitted in Newton, but we can't backport it:
    https://review.openstack.org/#/c/369369/

    Don't add brackets on mysql_bind_host parameter in Galera config.
    Having brackets from this parameter works with old version of
    Galera but not newest one.
    EPEL upgraded the version of Galera, so we need this change to deploy
    TripleO in HA environment.

    Change-Id: I1128c560f00fb3ffee8e072f1874ad7e610ff9e0
    Closes-Bug: #1622755

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/liberty)

Reviewed: https://review.openstack.org/371031
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=ef14f86f5d5dc4fbf1fc79a7476e8721b234f642
Submitter: Jenkins
Branch: stable/liberty

commit ef14f86f5d5dc4fbf1fc79a7476e8721b234f642
Author: Damien Ciabrini <email address hidden>
Date: Wed Mar 30 14:19:39 2016 +0200

    MySQL Galera backports

    This is a squash of 2 backports to fix Galera deployment on Liberty.

    1) Enable galera replication for Mariadb 10.1

    The generated galera config has to include additional settings for
    galera to be active on MariaDB 10.1.
    wsrep_on must be explicitely set to ON. On MariaDB 5.5, this was
    implicitely set as soon as wsrep_provider was specified.
    a valid wsrep_cluster_address must be configured in addition to
    wsrep_on, otherwise recovery command mysqld_safe --wsrep-recover
    cannot retrieve replication state, and cluster cannot be bootstrapped.
    These explicit settings are backward compatible with MariaDB 5.5 since
    the two variables exist in both versions of MariaDB.

    Closes-Bug: 1563751
    (cherry-picked from commit df343c35ce468c34b2102f0158d36017089c776d)

    2) [liberty-only] mysql: never add brackets to mysql_bind_host

    The patch was submitted in Newton, but we can't backport it:
    https://review.openstack.org/#/c/369369/
    Don't add brackets on mysql_bind_host parameter in Galera config.
    Having brackets from this parameter works with old version of
    Galera but not newest one.
    EPEL upgraded the version of Galera, so we need this change to deploy
    TripleO in HA environment

    Closes-Bug: #1622755
    (cherry picked from commit 41b85b26718c581ea3046e4abc4b510c49ef445c)

    Change-Id: I1128c560f00fb3ffee8e072f1874ad7e610ff9e0

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 2.2.0

This issue was fixed in the openstack/tripleo-heat-templates 2.2.0 release.

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.