HA overcloud: wait for db before running grant commands
When using the pacemaker profile, some collectors ensure that mysql is up before trying to create databases or users. Extend the ordering constraints to include grant operations. Change-Id: Ib2af5dfe5af5a1f0db806c04ee83ed48724673db Co-Authored-By: Michele Baldessari <michele@acksyn.org> Closes-bug: #1776485
This commit is contained in:
committed by
Emilien Macchi
parent
aa9d35e867
commit
5ad483ea04
@@ -290,6 +290,7 @@ class tripleo::profile::pacemaker::database::mysql (
|
||||
# Galara is up before those get created
|
||||
Exec['galera-ready'] -> Mysql_database<||>
|
||||
Exec['galera-ready'] -> Mysql_user<||>
|
||||
Exec['galera-ready'] -> Mysql_grant<||>
|
||||
|
||||
}
|
||||
# This step is to create a sysconfig clustercheck file with the root user and empty password
|
||||
|
||||
@@ -416,10 +416,13 @@ MYSQL_HOST=localhost\n",
|
||||
# Galera is up and ready before those get created
|
||||
File['/root/.my.cnf'] -> Mysql_database<||>
|
||||
File['/root/.my.cnf'] -> Mysql_user<||>
|
||||
File['/root/.my.cnf'] -> Mysql_grant<||>
|
||||
File['/etc/sysconfig/clustercheck'] -> Mysql_database<||>
|
||||
File['/etc/sysconfig/clustercheck'] -> Mysql_user<||>
|
||||
File['/etc/sysconfig/clustercheck'] -> Mysql_grant<||>
|
||||
Exec['galera-ready'] -> Mysql_database<||>
|
||||
Exec['galera-ready'] -> Mysql_user<||>
|
||||
Exec['galera-ready'] -> Mysql_grant<||>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user