Retry if the pacemaker_resource commands failed
authorMathieu Bultel <mbultel@redhat.com>
Mon, 28 Aug 2017 15:24:47 +0000 (17:24 +0200)
committerMarius Cornea <mcornea@redhat.com>
Thu, 14 Sep 2017 12:27:57 +0000 (12:27 +0000)
commit2ada42c10949dfb668581d9690011a16383f23d5
tree54266fae76a10af2d8469b0e3e89bdee73bc370c
parentbcbe6bbd02843e60045d2a168dc84f6e8c0ed496
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)
docker/services/pacemaker/cinder-backup.yaml
docker/services/pacemaker/cinder-volume.yaml
docker/services/pacemaker/database/mysql.yaml
docker/services/pacemaker/database/redis.yaml
docker/services/pacemaker/haproxy.yaml
docker/services/pacemaker/rabbitmq.yaml