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, that is part of the
mariadb package, is being removed which has unforeseen options within
it causing no logs to be created.
The default option "galera_innodb_additional_mem_pool_size" was removed
because its no longer valid within MariaDB10 and we'd never caught that
error message until now.
Reviewed: https:/ /review. openstack. org/265915 /git.openstack. org/cgit/ openstack/ openstack- ansible/ commit/ ?id=d839e2e4f95 0b08b6fb28169da 16f56449797fb8
Committed: https:/
Submitter: Jenkins
Branch: liberty
commit d839e2e4f950b08 b6fb28169da16f5 6449797fb8
Author: Jesse Pretorius <email address hidden>
Date: Mon Jan 11 16:36:49 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, that is part of the
mariadb package, is being removed which has unforeseen options within
it causing no logs to be created.
The default option "galera_ innodb_ additional_ mem_pool_ size" was removed
because its no longer valid within MariaDB10 and we'd never caught that
error message until now.
This patch is based on: /review. openstack. org/256016 /review. openstack. org/266265
- https:/
- https:/
Closes-Bug: #1532761 56fc2d59f9943c1 72b88098905
Closes-Bug: #1533126
Change-Id: I16af30c6607906