Fix the timeout for pacemaker systemd resources
authorMichele Baldessari <michele@acksyn.org>
Fri, 30 Sep 2016 22:10:18 +0000 (00:10 +0200)
committerEmilien Macchi <emilien@redhat.com>
Mon, 3 Oct 2016 18:27:36 +0000 (18:27 +0000)
commit0bc59a7362ea5c9a01fe8bf521e19a4014577079
treea4676cbe8167b8244b23ab5b97b0dd2a5f10f75d
parentc08431d41aa5a447ebef669a152143e1274a227d
Fix the timeout for pacemaker systemd resources

Back in the Mitaka cycle via the change If6b43982c958f63bc78ad997400bf1279c23df7e
we made sure that the default start and stop timeouts for pacemaker
systemd resources is 200s (>= twice the default 90s DefaultTimeoutStopSec
in systemd). We did this change by setting puppet resource defaults for
the Pacemaker::Resource::Service class:

Pacemaker::Resource::Service {
  op_params => 'start timeout=200s stop timeout=200s',
}

The problem is that after the composable services rework, this does not
work anymore and the pacemaker systemd resources that still exist do not
have these timeouts set.

We want to move away from resource defaults for this because its results
are dependent on the inclusion order which in tripleo is not guaranteed
any longer (https://docs.puppet.com/puppet/latest/reference/lang_scope.html#scope-lookup-rules)

The only services affected in Newton are: cinder-volume,
cinder-backup, manila-share, haproxy. I preferred fixing all the
pacemaker resources because it seems the cleanest and most logical
commit.

Change-Id: If89a95706514e536a7a2949871a0002c79b6046e
Closes-Bug: #1629366
32 files changed:
manifests/profile/base/pacemaker.pp
manifests/profile/pacemaker/apache.pp
manifests/profile/pacemaker/ceilometer/agent/central.pp
manifests/profile/pacemaker/ceilometer/agent/notification.pp
manifests/profile/pacemaker/ceilometer/collector.pp
manifests/profile/pacemaker/cinder/api.pp
manifests/profile/pacemaker/cinder/backup.pp
manifests/profile/pacemaker/cinder/scheduler.pp
manifests/profile/pacemaker/cinder/volume.pp
manifests/profile/pacemaker/glance.pp
manifests/profile/pacemaker/gnocchi/metricd.pp
manifests/profile/pacemaker/gnocchi/statsd.pp
manifests/profile/pacemaker/haproxy.pp
manifests/profile/pacemaker/heat/api.pp
manifests/profile/pacemaker/heat/api_cfn.pp
manifests/profile/pacemaker/heat/api_cloudwatch.pp
manifests/profile/pacemaker/heat/engine.pp
manifests/profile/pacemaker/manila.pp
manifests/profile/pacemaker/memcached.pp
manifests/profile/pacemaker/neutron.pp
manifests/profile/pacemaker/neutron/dhcp.pp
manifests/profile/pacemaker/neutron/l3.pp
manifests/profile/pacemaker/neutron/metadata.pp
manifests/profile/pacemaker/neutron/midonet.pp
manifests/profile/pacemaker/neutron/ovs.pp
manifests/profile/pacemaker/nova/api.pp
manifests/profile/pacemaker/nova/conductor.pp
manifests/profile/pacemaker/nova/consoleauth.pp
manifests/profile/pacemaker/nova/scheduler.pp
manifests/profile/pacemaker/nova/vncproxy.pp
manifests/profile/pacemaker/sahara/api.pp
manifests/profile/pacemaker/sahara/engine.pp