Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
pacemaker.3577
pacemaker-libpengine-pe_order_same_node.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-libpengine-pe_order_same_node.patch of Package pacemaker.3577
commit f6ffb93edb68fc20d9fb6a1324bc724ecb131617 Author: Ken Gaillot <kgaillot@redhat.com> Date: Mon Jul 18 14:55:12 2016 -0500 Feature: libpengine: allow pe_order_same_node option for constraints With this option, a constraint between two actions applies only if they are scheduled on the same node. Index: pacemaker/include/crm/pengine/status.h =================================================================== --- pacemaker.orig/include/crm/pengine/status.h +++ pacemaker/include/crm/pengine/status.h @@ -392,6 +392,7 @@ enum pe_ordering { pe_order_restart = 0x1000, /* 'then' is runnable if 'first' is optional or runnable */ pe_order_stonith_stop = 0x2000, /* only applies if the action is non-pseudo */ pe_order_serialize_only = 0x4000, /* serialize */ + pe_order_same_node = 0x8000, /* applies only if 'first' and 'then' are on same node */ pe_order_implies_first_printed = 0x10000, /* Like ..implies_first but only ensures 'first' is printed, not manditory */ pe_order_implies_then_printed = 0x20000, /* Like ..implies_then but only ensures 'then' is printed, not manditory */ Index: pacemaker/pengine/graph.c =================================================================== --- pacemaker.orig/pengine/graph.c +++ pacemaker/pengine/graph.c @@ -509,6 +509,17 @@ update_action(action_t * then) } } + /* Disable constraint if it only applies when on same node, but isn't */ + if (is_set(other->type, pe_order_same_node) + && (first_node->details != then_node->details)) { + + crm_trace("Disabled constraint %s on %s -> %s on %s", + other->action->uuid, first_node->details->uname, + then->uuid, then_node->details->uname); + other->type = pe_order_none; + continue; + } + clear_bit(changed, pe_graph_updated_first); if (first->rsc != then->rsc
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor