diff options
author | 2017-08-28 17:24:47 +0200 | |
---|---|---|
committer | 2017-09-14 12:27:57 +0000 | |
commit | 2ada42c10949dfb668581d9690011a16383f23d5 (patch) | |
tree | 54266fae76a10af2d8469b0e3e89bdee73bc370c /docker/services/pacemaker/database/mysql.yaml | |
parent | bcbe6bbd02843e60045d2a168dc84f6e8c0ed496 (diff) |
Retry if the pacemaker_resource commands failed
Add a retry when the pacemaker_resource command
wasn't apply correctly, more info here:
https://bugzilla.redhat.com/show_bug.cgi?id=1482116
This is the same approach puppet-pacemaker uses
and provides eventual consistency when multiple
nodes change the cluster CIB concurrently.
This change depends-on :
https://review.gerrithub.io/375982
The return code is not available in the current
ansible-pacemaker package.
Change-Id: I8da03f5c4a6d442617b81be5793a9724cc8842bf
(cherry picked from commit e92430d8d03fc2ce2d0ce192b96209f2c5c04169)
Diffstat (limited to 'docker/services/pacemaker/database/mysql.yaml')
-rw-r--r-- | docker/services/pacemaker/database/mysql.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/services/pacemaker/database/mysql.yaml b/docker/services/pacemaker/database/mysql.yaml index f57f779e..1e1b2baf 100644 --- a/docker/services/pacemaker/database/mysql.yaml +++ b/docker/services/pacemaker/database/mysql.yaml @@ -272,6 +272,9 @@ outputs: resource: galera state: disable wait_for_resource: true + register: output + retries: 5 + until: output.rc == 0 when: is_bootstrap_node - name: Delete the stopped galera cluster resource. tags: step2 @@ -279,6 +282,9 @@ outputs: resource: galera state: delete wait_for_resource: true + register: output + retries: 5 + until: output.rc == 0 when: is_bootstrap_node - name: Disable mysql service tags: step2 |