Merge "Reduce verbosity during mysql bootstrap, non-HA"

This commit is contained in:
Zuul 2018-06-17 10:09:07 +00:00 committed by Gerrit Code Review
commit c36bad9780

View File

@ -139,13 +139,14 @@ outputs:
# Kolla bootstraps aren't idempotent, explicitly checking if bootstrap was done # Kolla bootstraps aren't idempotent, explicitly checking if bootstrap was done
command: command:
- 'bash' - 'bash'
- '-ecx' - '-ec'
- -
list_join: list_join:
- "\n" - "\n"
- - 'if [ -e /var/lib/mysql/mysql ]; then exit 0; fi' - - 'if [ -e /var/lib/mysql/mysql ]; then exit 0; fi'
- 'echo -e "\n[mysqld]\nwsrep_provider=none" >> /etc/my.cnf' - 'echo -e "\n[mysqld]\nwsrep_provider=none" >> /etc/my.cnf'
- 'sudo -u mysql -E kolla_start' - 'kolla_set_configs'
- 'sudo -u mysql -E kolla_extend_start'
- 'mysqld_safe --skip-networking --wsrep-on=OFF &' - 'mysqld_safe --skip-networking --wsrep-on=OFF &'
- 'timeout ${DB_MAX_TIMEOUT} /bin/bash -c ''until mysqladmin -uroot -p"${DB_ROOT_PASSWORD}" ping 2>/dev/null; do sleep 1; done''' - 'timeout ${DB_MAX_TIMEOUT} /bin/bash -c ''until mysqladmin -uroot -p"${DB_ROOT_PASSWORD}" ping 2>/dev/null; do sleep 1; done'''
- 'mysql -uroot -p"${DB_ROOT_PASSWORD}" -e "CREATE USER ''mysql''@''localhost'';"' - 'mysql -uroot -p"${DB_ROOT_PASSWORD}" -e "CREATE USER ''mysql''@''localhost'';"'