Skip to content
Snippets Groups Projects
Commit 9099b8be authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Wait the wsrep_ready to be ON in mariadb"

parents c9808a2e 4417ffbf
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ function bootstrap_db {
# NOTE(sbezverk): Currently kolla-kubernetes does not use Galera and disables wsrep driver.
# This check will run only for non kolla-kubernetes bootstrap deployments.
if [[ ! "${!KOLLA_KUBERNETES[@]}" ]]; then
CLUSTER_READY=$(mysql -u root --exec="SHOW STATUS LIKE 'wsrep_cluster_status'" | grep Primary)
CLUSTER_READY=$(mysql -u root --exec="SHOW STATUS LIKE 'wsrep_ready'" | grep ON)
TIMEOUT=${DB_MAX_TIMEOUT:-60}
while [[ -z "${CLUSTER_READY}" ]]; do
if [[ ${TIMEOUT} -gt 0 ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment