File pacemaker-pengine-if-ignoring-failure-also-migration-threshold.patch of Package pacemaker.14737

commit bd22f46bbcf4053f21b658114350809044109b0a
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Wed Nov 1 12:30:52 2017 -0500

    Fix: pengine: if ignoring failure, also ignore migration-threshold

Index: pacemaker-1.1.16+20170320.77ea74d/pengine/allocate.c
===================================================================
--- pacemaker-1.1.16+20170320.77ea74d.orig/pengine/allocate.c
+++ pacemaker-1.1.16+20170320.77ea74d/pengine/allocate.c
@@ -646,6 +646,11 @@ check_migration_threshold(resource_t *rs
         return;
     }
 
+    // If we're ignoring failures, also ignore the migration threshold
+    if (is_set(rsc->flags, pe_rsc_failure_ignored)) {
+        return;
+    }
+
     /* If there are no failures, there's no need to force away */
     fail_count = get_failcount_all(node, rsc, NULL, data_set);
     if (fail_count <= 0) {
openSUSE Build Service is sponsored by