Mariadb: Disable wsrep during setting of password

This PS disables wsrep during the setting of admin passwords, which
is required to allow the cluster to come up from a dead stop.

Change-Id: Id9af65d57755f62afc672900bca79e5b11e9c8c9
Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
Pete Birley 2019-04-01 09:58:28 -05:00
parent 8673bdda53
commit 372eeb3a9c

@ -253,7 +253,9 @@ def mysqld_bootstrap():
f.write(template)
f.close()
run_cmd_with_logging([
'mysqld', '--bind-address=127.0.0.1',
'mysqld',
'--bind-address=127.0.0.1',
'--wsrep_cluster_address=gcomm://',
"--init-file={0}".format(bootstrap_sql_file)
], logger)
os.remove(bootstrap_sql_file)
@ -724,7 +726,9 @@ def run_mysqld(cluster='existing'):
f.write(template)
f.close()
run_cmd_with_logging([
'mysqld', '--bind-address=127.0.0.1',
'mysqld',
'--bind-address=127.0.0.1',
'--wsrep_cluster_address=gcomm://',
"--init-file={0}".format(bootstrap_sql_file)
], logger)
os.remove(bootstrap_sql_file)