Filter for local nodes in check_resource function
authorRaoul Scarazzini <rscarazz@redhat.com>
Fri, 1 Apr 2016 13:52:33 +0000 (15:52 +0200)
committerGiulio Fidente <gfidente@redhat.com>
Mon, 4 Apr 2016 08:41:37 +0000 (10:41 +0200)
commit05b2a200ca2adc5b34bc1460d350f25f1fc18bbe
tree0cac771651c05f08e0070601def83a984c6ce6b7
parent4e862ccee2b4afbb3c8b2265217f408a2d503af7
Filter for local nodes in check_resource function

While having extra customizations inside a TripleO deployed
Pacemaker environment, say you have instance HA with
pacemaker_remoted or you need to configure an external arbitrator
for something, then the status of the resources for remote nodes
is "Stopped".
This leads to failures while, for example, scaling up.
This fixes the way status is checked, filtering just local nodes.

Co-Authored-By: Giulio Fidente <gfidente@redhat.com>
Change-Id: I8dc25f5d7031c265858afd5a266fda5315ae37a0
extraconfig/tasks/pacemaker_common_functions.sh