mariadb bootstrap unconditionally check for wsrep cluster
Bug #1623662 reported by
Serguei Bezverkhi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Critical
|
Serguei Bezverkhi |
Bug Description
On August 28th, 2016 this change c7c87909 introduced unconditional check for wsrep cluster during bootstrap process whether is ready or not and if it is not it, bootstrap fails.
In kubernetes environment wsrep driver is set to none, cluster will NEVER reach ready state hence causing mariadb bootstrap job failure in kubernetes.
This code should run ONLY for Kolla and never for Kolla Kubernetes
CLUSTER_
TIMEOUT=
while [[ -z "${CLUSTER_READY}" ]]; do
if [[ ${TIMEOUT} -gt 0 ]]; then
let TIMEOUT-=1
sleep 1
else
exit 1
To post a comment you must log in.
In lubernetes we always get this: mariadb- bootstrap- adlhn /]$ mysql -u root --exec="SHOW STATUS LIKE 'wsrep_ cluster_ status' " ------- ------- --+---- ------- ---+ ------- ------- --+---- ------- ---+ status | Disconnected | ------- ------- --+---- ------- ---+ mariadb- bootstrap- adlhn /]$ mariadb- bootstrap- adlhn /]$ mysql -u root --exec="SHOW GLOBAL STATUS LIKE 'wsrep_%';" ------- ------- ------+ ------- ------- ------- -+ ------- ------- ------+ ------- ------- ------- -+ conf_id | 184467440737095 51615 | state_uuid | | status | Disconnected | bf_aborts | 0 | 51615 | vendor | | version | | ------- ------- ------+ ------- ------- ------- -+
()[mysql@
+------
| Variable_name | Value |
+------
| wsrep_cluster_
+------
()[mysql@
()[mysql@
+------
| Variable_name | Value |
+------
| wsrep_cluster_
| wsrep_cluster_size | 0 |
| wsrep_cluster_
| wsrep_cluster_
| wsrep_connected | OFF |
| wsrep_local_
| wsrep_local_index | 184467440737095
| wsrep_provider_name | |
| wsrep_provider_
| wsrep_provider_
| wsrep_ready | ON |
| wsrep_thread_count | 0 |
+------