Make package upgrade pacemaker-aware
authorSteve Baker <sbaker@redhat.com>
Mon, 21 Sep 2015 01:05:45 +0000 (13:05 +1200)
committerSteve Baker <sbaker@redhat.com>
Thu, 1 Oct 2015 02:40:55 +0000 (15:40 +1300)
commit3fd199d8e7fa59979a0aff7d78cce61d6cd607a8
tree357461a9d7d2be7e342fb4f9d8d24035a84abbcc
parent3e879e6faa94e46427c5d7b350a3734fcd5c4c02
Make package upgrade pacemaker-aware

This change adds alternative logic for handling package updates
on a pacemaker managed node.

"yum list updates" is now run and this script exits early if
there are no packages to update.

If the pacemaker service is not running then the previous puppet
logic remains, so a package update is performed which excludes packages
managed by puppet, and a flag is set to indicate that puppet should
perform an ensure=>latest on all packages it manages.

However if the pacemaker service is running, the following occurs:
- pcs cluster stop is run for this node
- a full yum update is performed
- pcs cluster start is run for this node
- pcs status is run until the hostname for this node appears in the
  Online list

This means that puppet is not involved in the package update process when
the node is managed by pacemaker.

Change-Id: I5ad118552d053dbda280978751167d9fd9da9874
extraconfig/tasks/yum_update.sh