MariaDB: Update to 10.2.13; patching wsrep_sst_xtrabackup-v2

Recent versions of MariaDB (10.1.31, 10.2.13) have a regression that
breaks clustering.  See https://github.com/MariaDB/server/pull/457 and
4e6dab94d0
for an in depth explanation.

We need 10.2.13+ for Barbican to function correctly (see bug #1734329)
but we also need the fix above to support MariaDB clustering.

This work-around can be removed later on when MariaDB 10.2.x releases
contain the needed script fix.

Thanks to Sam Yample <sam@yaple.net> for helping track this down.

Change-Id: Ifd09d7effe7d382074ca9e6678df36bdd4bce0af
This commit is contained in:
Chris Wedgwood 2018-03-21 21:00:01 +00:00
parent 5177faa156
commit 626d7d6ef6
2 changed files with 11 additions and 2 deletions

View File

@ -17,6 +17,12 @@ limitations under the License.
set -xe
# MariaDB 10.2.13 has a regression which breaks clustering, patch
# around this for now
if /usr/sbin/mysqld --version | grep --silent 10.2.13 ; then
sed -i 's^LSOF_OUT=.*^LSOF_OUT=$(lsof -sTCP:LISTEN -i TCP:${PORT} -a -c nc -c socat -F c 2> /dev/null || :)^' /usr/bin/wsrep_sst_xtrabackup-v2
fi
# Bootstrap database
CLUSTER_INIT_ARGS=""
CLUSTER_CONFIG_PATH=/etc/mysql/conf.d/10-cluster-config.cnf

View File

@ -14,8 +14,11 @@
images:
tags:
mariadb: docker.io/mariadb:10.1.23
prometheus_create_mysql_user: docker.io/mariadb:10.1.23
# NOTE: if you update from 10.2.13 please look at
# https://review.openstack.org/#/q/Ifd09d7effe7d382074ca9e6678df36bdd4bce0af
# and check whether it's still needed
mariadb: docker.io/mariadb:10.2.13
prometheus_create_mysql_user: docker.io/mariadb:10.2.13
prometheus_mysql_exporter: docker.io/prom/mysqld-exporter:v0.10.0
prometheus_mysql_exporter_helm_tests: docker.io/openstackhelm/heat:newton
dep_check: quay.io/stackanetes/kubernetes-entrypoint:v0.3.0