Force stop a single node pacemaker on yum update
authorSteve Baker <sbaker@redhat.com>
Wed, 30 Sep 2015 21:17:29 +0000 (10:17 +1300)
committerSteve Baker <sbaker@redhat.com>
Thu, 1 Oct 2015 02:40:55 +0000 (15:40 +1300)
commit77e8ec22a9cfa05c11a8654ce3a02c1bb3b4578f
treea0bb75435abc7d6202eb028b770673a87792b52b
parent3fd199d8e7fa59979a0aff7d78cce61d6cd607a8
Force stop a single node pacemaker on yum update

Currently package updates won't occur on a single node
non-HA pacemaker managed Controller because stopping
the node loses the quorum of 1.

This change gets the count of current nodes in the cluster and
if the count is 1 then specify --force when doing a pcs cluster stop.

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