mysql: do not overwrite password file during docker-puppet
During a stack update, when docker-puppet regenerates configs files for the
mysql service, the root mysql passwords may change. Mysql has to update its
internal state (e.g. password in mysql DB) to reflect the change, but this
only happens when paunch restarts mysql; and the old password it required
to until the change is applied.
For such services, update the config hash to notify paunch that a restart is
needed, but do not update the password file in docker-puppet and let the
service's containers regenerate it instead.
Change-Id: I5bdbc89897a6dcd5bd57f2132e2acf99702b28ea
Partial-Bug: #1792416
(cherry picked from commit 8e67ec833173920ac60b5548a711885a4d28e16f)
Reviewed: https:/ /review. openstack. org/637539 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=c9b06deaa1c 25fdd663e5ce479 2c28374d9b2eff
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit c9b06deaa1c25fd d663e5ce4792c28 374d9b2eff
Author: Damien Ciabrini <email address hidden>
Date: Sun Sep 16 07:38:35 2018 -0400
mysql: do not overwrite password file during docker-puppet
During a stack update, when docker-puppet regenerates configs files for the
mysql service, the root mysql passwords may change. Mysql has to update its
internal state (e.g. password in mysql DB) to reflect the change, but this
only happens when paunch restarts mysql; and the old password it required
to until the change is applied.
For such services, update the config hash to notify paunch that a restart is
needed, but do not update the password file in docker-puppet and let the
service's containers regenerate it instead.
Change-Id: I5bdbc89897a6dc d5bd57f2132e2ac f99702b28ea ac60b5548a71188 5a4d28e16f)
Partial-Bug: #1792416
(cherry picked from commit 8e67ec833173920