mariadb: make security_reset.expect's timeout configurable
Under heavy load, when the security_reset script is being run to set
up root password, it might happen that the mysql server doesn't get a
change to evaluate the SQL statement sent by security_reset.expect
before the hardcoded 10 seconds timeout is reached.
Allow the timeout to be overriden via env variable DB_MAX_TIMEOUT,
which is already used as a timeout variable in extend_start.sh
Reviewed: https:/ /review. openstack. org/612996 /git.openstack. org/cgit/ openstack/ kolla/commit/ ?id=8e2906a59e6 63d43aaac2369b5 b74e5142b61d53
Committed: https:/
Submitter: Zuul
Branch: master
commit 8e2906a59e663d4 3aaac2369b5b74e 5142b61d53
Author: Damien Ciabrini <email address hidden>
Date: Wed Oct 24 13:27:23 2018 +0200
mariadb: make security_ reset.expect' s timeout configurable
Under heavy load, when the security_reset script is being run to set reset.expect
up root password, it might happen that the mysql server doesn't get a
change to evaluate the SQL statement sent by security_
before the hardcoded 10 seconds timeout is reached.
Allow the timeout to be overriden via env variable DB_MAX_TIMEOUT,
which is already used as a timeout variable in extend_start.sh
Change-Id: If82c6daca82a48 d899605829dc99c f4a352cddcd
Closes-Bug: #1775864