puppet-pacemaker/spec
Michele Baldessari 606d58caa3 Remove old workarounds for broken crm_diff
Reason for this is that there are two functions to detect a change in a
pcmk resource:
- pacemaker_restart_resource? -> which parses crm_simulate and was
  necessary due to https://bugzilla.redhat.com/show_bug.cgi?id=1561617
  (Fixed in pacemaker-1.1.18-12)
- pacemaker_restart_resource_ng? -> which is the preferred one and uses
  crm_diff xml output (and is a lot simpler).

We can remove pacemaker_restart_resource? fully now that newton and
Centos 7 are unsupported.

Tested as follows:
- Deployed a fresh Train overcloud w/ this change
- Ran a redeployment forcing a config change on an HA bundle
- Ran another redeployment forcing a CIB change on an HA bundle
  OVNDBSPacemakerMonitorIntervalSlave: 666
  observed that the bundle was restarted correctly:
  [root@controller-0 ~]# pcs resource config ovn-dbs-bundle |grep 666
     monitor interval=666s role=Slave timeout=60s (ovndb_servers-monitor-interval-666s)
- Also tested in CI via https://review.opendev.org/c/openstack/tripleo-heat-templates/+/803101

Change-Id: Iba736839ae12f3adf180b53cd7fc5c552d03bd47
2021-07-31 13:18:34 +02:00
..
acceptance CI: specinfra, xenial, lint, puppet bug. 2016-06-24 18:07:24 +02:00
classes Remove support for CentOS6/RHEL6 2020-04-07 19:19:05 +09:00
defines Deprecate include_class 2018-11-27 14:23:06 +08:00
functions Scale up logic with extra IP addresses for pcs 0.10 2019-07-17 15:18:41 +02:00
unit Remove old workarounds for broken crm_diff 2021-07-31 13:18:34 +02:00
spec_helper.rb Merge with fuel-infra/puppet-pacemaker 2016-05-25 11:22:22 +02:00
spec_helper_acceptance.rb CI: specinfra, xenial, lint, puppet bug. 2016-06-24 18:07:24 +02:00