Ensure ocf file is installed
Ensure ocf file is installed early so that mysql monitor resource can start as soon as it is defined. Otherwise it will be down and may not come backup without manual intervention. Change-Id: I5da6da4ddde25219e06ef47bba5f3004ccf678ee Closes-Bug: #1837401
This commit is contained in:
parent
e27006e98b
commit
9391662e19
|
@ -536,6 +536,9 @@ def config_changed():
|
|||
leader = is_leader()
|
||||
leader_ip = leader_get('leader-ip')
|
||||
|
||||
# (re)install pcmkr agent
|
||||
install_mysql_ocf()
|
||||
|
||||
if leader:
|
||||
# If the cluster has not been fully bootstrapped once yet, use an empty
|
||||
# hosts list to avoid restarting the leader node's mysqld during
|
||||
|
@ -580,9 +583,6 @@ def config_changed():
|
|||
# Notify any changes to the access network
|
||||
update_client_db_relations()
|
||||
|
||||
# (re)install pcmkr agent
|
||||
install_mysql_ocf()
|
||||
|
||||
for rid in relation_ids('ha'):
|
||||
# make sure all the HA resources are (re)created
|
||||
ha_relation_joined(relation_id=rid)
|
||||
|
|
Loading…
Reference in New Issue