File pacemaker-crm_resource-target-role-promotion.patch of Package pacemaker.3577
commit 63428fc34dcb864acb788419c5c8f8604ba0bdd0
Author: Lars Ellenberg <lars.ellenberg@linbit.com>
Date: Thu Jun 2 15:08:35 2016 +0200
crm_resource: don't pretend that target-role:started would prevent promotion
diff --git a/tools/crm_resource_runtime.c b/tools/crm_resource_runtime.c
index 6d8a94d..8e13e91 100644
--- a/tools/crm_resource_runtime.c
+++ b/tools/crm_resource_runtime.c
@@ -707,7 +707,7 @@ cli_resource_check(cib_t * cib_conn, resource_t *rsc)
printf("\n * The configuration specifies that '%s' should remain stopped\n", parent->id);
need_nl++;
- } else if(parent->variant > pe_clone && role != RSC_ROLE_MASTER) {
+ } else if(parent->variant > pe_clone && role == RSC_ROLE_SLAVE) {
printf("\n * The configuration specifies that '%s' should not be promoted\n", parent->id);
need_nl++;
}