This patch ensures that MariaDB is given adequate time to start on a
resources constrained system (180s versus the default of 30s),
ensures that the error log is appropriately populated and also
provides a failback restart in the case where there may be a corrupt
sst directory.
In the handler changes:
- the environment variable "MYSQLD_STARTUP_TIMEOUT" is now being
passed into the init script because the defaults are not being
sourced at the init script runtime.
- the temporary "sst" directory is cleaned up should the handler
restart fail. This ensurez that a node is in a clean state if a
leftover sst directory was on the disk which would cause a node
to fail to join a cluster or bootstrap.
In the task changes:
- a new configuration file (part of the mariadb package) is being
removed which has unforeseen options within it causing no logs
to be created.
- a mysql ping check is implemented to verify that the service is
responding after the restart handler is fired.
Reviewed: https:/ /review. openstack. org/268975 /git.openstack. org/cgit/ openstack/ openstack- ansible/ commit/ ?id=4a401125e46 ca28d3d8848ea19 4737f1e17f6992
Committed: https:/
Submitter: Jenkins
Branch: kilo
commit 4a401125e46ca28 d3d8848ea194737 f1e17f6992
Author: Jesse Pretorius <email address hidden>
Date: Mon Jan 11 16:24:38 2016 +0000
Resolve MariaDB/Galera cluster startup/logging issues
This patch ensures that MariaDB is given adequate time to start on a
resources constrained system (180s versus the default of 30s),
ensures that the error log is appropriately populated and also
provides a failback restart in the case where there may be a corrupt
sst directory.
In the handler changes: STARTUP_ TIMEOUT" is now being
- the environment variable "MYSQLD_
passed into the init script because the defaults are not being
sourced at the init script runtime.
- the temporary "sst" directory is cleaned up should the handler
restart fail. This ensurez that a node is in a clean state if a
leftover sst directory was on the disk which would cause a node
to fail to join a cluster or bootstrap.
In the task changes:
- a new configuration file (part of the mariadb package) is being
removed which has unforeseen options within it causing no logs
to be created.
- a mysql ping check is implemented to verify that the service is
responding after the restart handler is fired.
This patch is based on: /review. openstack. org/256016 /review. openstack. org/266265 /review. openstack. org/268707
- https:/
- https:/
- https:/
Closes-Bug: #1532761 56fc2d59f9943c1 72b88098905
Closes-Bug: #1533126
Change-Id: I16af30c6607906
Wait for galera to respond after restarts
Add a mysql ping check to verify the service is responding
after a restart handler is fired.
Change-Id: Idfc1e1a1113ab0 ffa221e4c0a4cc0 74df23fe89a ada1a1be8d67075 5a0e4e6f0b)
(cherry picked from commit f6fb63f3477e7cd