Don't restart Pacemaker-managed services from Puppet
authorJiri Stransky <jistr@redhat.com>
Tue, 29 Mar 2016 12:11:08 +0000 (14:11 +0200)
committerJiri Stransky <jistr@redhat.com>
Tue, 29 Mar 2016 12:38:27 +0000 (14:38 +0200)
commit7b2e56053f6cf7535c7ae416c5cb41e7c9679924
treed73504efa4b5fe0764eae7143a6458203d511e57
parentdfa0b12265c573314092eb8479caca76322a9f06
Don't restart Pacemaker-managed services from Puppet

We need to reload/restart services on updates/upgrades to apply any
config changes, but restarting services managed from Pacemaker from
Puppet causes problems.

For now we no-op the restart and rely on the catch-all restart after
Puppet phase.

In the future we should have a service provider for pacemaker resources
that will be using pcs. We still might have to restart services outside
Puppet due to cluster-wide orchestration issues, but we might be able to
do the restarts selectively rather than restart everything.

We also no-op the start/stop commands to be safe, as it also doesn't
make sense for Puppet to try start and stop those services when it
doesn't have knowledge about Pacemaker.

Change-Id: I95e21e10471cd7575f28c095c48150325f1414b3
Closes-Bug: #1562922
puppet/manifests/overcloud_controller_pacemaker.pp