Merge "Remove race during mysql database creation" into stable/train
This commit is contained in:
commit
8253593b0b
|
@ -158,6 +158,7 @@ outputs:
|
|||
- 'echo -e "\n[mysqld]\nwsrep_provider=none" >> /etc/my.cnf'
|
||||
- 'kolla_set_configs'
|
||||
- 'sudo -u mysql -E kolla_extend_start'
|
||||
- 'timeout ${DB_MAX_TIMEOUT} /bin/bash -c ''while pgrep -af /usr/bin/mysqld_safe | grep -q -v grep; do sleep 1; done'''
|
||||
- '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'''
|
||||
- 'mysql -uroot -p"${DB_ROOT_PASSWORD}" -e "CREATE USER ''mysql''@''localhost'';"'
|
||||
|
|
|
@ -236,6 +236,7 @@ outputs:
|
|||
- 'echo -e "\n[mysqld]\nwsrep_provider=none" >> /etc/my.cnf'
|
||||
- 'kolla_set_configs'
|
||||
- 'sudo -u mysql -E kolla_extend_start'
|
||||
- 'timeout ${DB_MAX_TIMEOUT} /bin/bash -c ''while pgrep -af /usr/bin/mysqld_safe | grep -q -v grep; do sleep 1; done'''
|
||||
- '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'''
|
||||
- 'mysql -uroot -p"${DB_ROOT_PASSWORD}" -e "CREATE USER ''clustercheck''@''localhost'' IDENTIFIED BY ''${DB_CLUSTERCHECK_PASSWORD}'';"'
|
||||
|
|
Loading…
Reference in New Issue