Add support to change root password

Change the configured root's password in percona and update the leader
settings.

Change-Id: I7168a96cac7a3b4df7fcfa1afc6f35076748578b
Partial-Bug: 1436093
This commit is contained in:
Felipe Reyes
2017-06-13 22:42:18 -04:00
parent 62ed38b7b2
commit e7f611ff2e
5 changed files with 104 additions and 2 deletions

View File

@@ -105,6 +105,7 @@ from percona_utils import (
pxc_installed,
update_bootstrap_uuid,
LeaderNoBootstrapUUIDError,
update_root_password,
)
@@ -338,6 +339,11 @@ def config_changed():
open_port(DEFAULT_MYSQL_PORT)
# the password needs to be updated only if the node was already
# bootstrapped
if bootstrapped:
update_root_password()
@hooks.hook('cluster-relation-joined')
def cluster_joined():