Composable HA
authorMichele Baldessari <michele@acksyn.org>
Mon, 29 Aug 2016 20:07:55 +0000 (22:07 +0200)
committerEmilien Macchi <emilien@redhat.com>
Wed, 25 Jan 2017 19:32:31 +0000 (19:32 +0000)
commitf9efeb158261fbdad206ea072c4c628636c1a5f4
tree6c4091dcf104cfd7215bbb60fc0c800ae4e05aea
parent4a77eb9e987c924ed4e31719f4c27340c71ad41a
Composable HA

This commit implements composable HA for the pacemaker profiles.
- Everytime a pacemaker resource gets included on a node,
  that node will add a node cluster property with the name of the resource
  (e.g. galera-role=true)
- Add a location rule constraint to force running the resource only
  on the nodes that have that property
- We also make sure that any pacemaker resource/property creation has a
  predefined number of tries (20 by default). The reason for this is
  that within composable HA, it might be possible to get "older CIB"
  errors when another node changed the CIB while we were doing an
  operation on it. Simply retrying fixes this.
- Also make sure that we use the newly introduced
  pacemaker::constraint::order class instead of the older
  pacemaker::constraint::base class. The former uses the push_cib()
  function and hence behaves correctly in case multiple nodes try
  to modify the CIB at the same time.

Change-Id: I63da4f48da14534fd76265764569e76300534472
Depends-On: Ib931adaff43dbc16220a90fb509845178d696402
Depends-On: I8d78cc1b14f0e18e034b979a826bf3cdb0878bae
Depends-On: Iba1017c33b1cd4d56a3ee8824d851b38cfdbc2d3
Rakefile
manifests/pacemaker/haproxy_with_vip.pp
manifests/profile/pacemaker/cinder/backup.pp
manifests/profile/pacemaker/cinder/volume.pp
manifests/profile/pacemaker/database/mysql.pp
manifests/profile/pacemaker/database/redis.pp
manifests/profile/pacemaker/haproxy.pp
manifests/profile/pacemaker/manila.pp
manifests/profile/pacemaker/rabbitmq.pp