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)
Reviewed: https:/ /review. openstack. org/371031 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=ef14f86f5d5 dc4fbf1fc79a747 6e8721b234f642
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit ef14f86f5d5dc4f bf1fc79a7476e87 21b234f642
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 address must be configured in addition to
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_
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 4b2102f0158d360 17089c776d)
(cherry-picked from commit df343c35ce468c3
2) [liberty-only] mysql: never add brackets to mysql_bind_host
The patch was submitted in Newton, but we can't backport it: /review. openstack. org/#/c/ 369369/
https:/
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 ea3046e4abc4b51 0c49ef445c)
(cherry picked from commit 41b85b26718c581
Change-Id: I1128c560f00fb3 ffee8e072f1874a d7e610ff9e0