File pacemaker-crmd-skip-restart-at-stonith-max-attempts.patch of Package pacemaker.8397
commit 8fd6691558d94a8294f3d860cc9451c1a8e0c7a1
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Mon Apr 17 13:55:19 2017 -0500
Low: crmd: skip restart at (not above) stonith-max-attempts
Index: pacemaker/crmd/te_callbacks.c
===================================================================
--- pacemaker.orig/crmd/te_callbacks.c
+++ pacemaker/crmd/te_callbacks.c
@@ -635,14 +635,14 @@ too_many_st_failures(const char *target)
if (target == NULL) {
g_hash_table_iter_init(&iter, stonith_failures);
while (g_hash_table_iter_next(&iter, (gpointer *) & key, (gpointer *) & value)) {
- if (value->count > 10) {
+ if (value->count >= 10) {
target = (const char*)key;
goto too_many;
}
}
} else {
value = g_hash_table_lookup(stonith_failures, target);
- if ((value != NULL) && (value->count > 10)) {
+ if ((value != NULL) && (value->count >= 10)) {
goto too_many;
}
}