mysql: fix root password update for containerized mysql
Since the mysql service has been containerized, we lost the ability
to update the root password during a stack update.
When the mysql root password in hiera differs from the one currently
set in the mysql DB, connect to the DB with password from .my.cnf and
update credentials of the root user before the puppet mysql module
tries to access the database. Also update other root DB users.
Reviewed: https:/ /review. openstack. org/637577 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=cc4f0a8fddc 1fd8fa4409b0021 e2800d177824f9
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit cc4f0a8fddc1fd8 fa4409b0021e280 0d177824f9
Author: Damien Ciabrini <email address hidden>
Date: Thu Sep 13 19:06:43 2018 -0400
mysql: fix root password update for containerized mysql
Since the mysql service has been containerized, we lost the ability
to update the root password during a stack update.
When the mysql root password in hiera differs from the one currently
set in the mysql DB, connect to the DB with password from .my.cnf and
update credentials of the root user before the puppet mysql module
tries to access the database. Also update other root DB users.
Change-Id: I8fe9a640ba3628 8a1f9cb18563b36 3159d4731c0 d5bd57f2132e2ac f99702b28ea 25e3cb57a237491 cd3505d92b)
Depends-On: I5bdbc89897a6dc
Closes-Bug: #1792416
(cherry picked from commit 467c6879d62b272