Rework the pacemaker_common_functions for M..N upgrades
authormarios <marios@redhat.com>
Wed, 25 May 2016 08:56:02 +0000 (11:56 +0300)
committerEmilien Macchi <emilien@redhat.com>
Sat, 17 Sep 2016 04:46:24 +0000 (04:46 +0000)
commitfb25385d34e604d2f670cebe3e03fd57c14fa6be
treeadce59c96cdd5bdf96b9fc644baecadb036254b3
parent430db61b817d8e276e3986777fe96a66546c5222
Rework the pacemaker_common_functions for M..N upgrades

For N we cannot assume services are managed by pacemaker.
This adds functions to check if a service is systemd or
pcmk managed and start/stops it accordingly. For pcmk,
only stop/disable on bootstrap node for example, whereas
systemd should stop/start on all controllers.

There is also an equivalent change to the check_resource
which has been reworked to allow both pcmk and systemd.

Implements: blueprint overcloud-upgrades-workflow-mitaka-to-newton
Change-Id: Ic8252736781dc906b3aef8fc756eb8b2f3bb1f02
extraconfig/tasks/major_upgrade_controller_pacemaker_1.sh
extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh
extraconfig/tasks/pacemaker_common_functions.sh
extraconfig/tasks/pacemaker_resource_restart.sh