ha/glance-fs: avoid a race condition
authorEmilien Macchi <emilien@redhat.com>
Mon, 28 Mar 2016 20:09:20 +0000 (16:09 -0400)
committerEmilien Macchi <emilien@redhat.com>
Thu, 7 Apr 2016 20:28:08 +0000 (20:28 +0000)
commit128026e368e951b6d6a799cf6d062f4d292b647b
tree23229db80a111b573f4840bf7eb69dda4cf8f9b4
parent706c2fe4b62f95ac13ee800fc08e549180afc810
ha/glance-fs: avoid a race condition

Create the glance-fs Pacemaker resource on one node (pacemaker master)
instead of all nodes, and set verify_on_create to True.

* It will avoid a race condition if Puppet is applied on 2 nodes on the
  same time, so the filesystem is attempted to be created once.
* Verify with psc that the resource has been correctly created.

The full context of the bug is decribed here:
https://bugzilla.redhat.com/show_bug.cgi?id=1319384

Change-Id: I625f0879ae56e814664d1433ae47e27148779f12
puppet/manifests/overcloud_controller_pacemaker.pp