Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
pacemaker.13547
pacemaker-pengine-loss-policy-fence-to-stop-if-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-pengine-loss-policy-fence-to-stop-if-no-fencing.patch of Package pacemaker.13547
commit e272654a9c6e44063c75b8eddd6e6c144bbd6df5 Author: Ken Gaillot <kgaillot@redhat.com> Date: Wed Sep 27 16:13:19 2017 -0500 Low: pengine: reset loss-policy from fence to stop if no fencing diff --git a/pengine/constraints.c b/pengine/constraints.c index c531b2c11..ae4d437b3 100644 --- a/pengine/constraints.c +++ b/pengine/constraints.c @@ -2589,10 +2589,19 @@ rsc_ticket_new(const char *id, resource_t * rsc_lh, ticket_t * ticket, new_rsc_ticket->role_lh = text2role(state_lh); if (safe_str_eq(loss_policy, "fence")) { + if (is_set(data_set->flags, pe_flag_stonith_enabled)) { + new_rsc_ticket->loss_policy = loss_ticket_fence; + } else { + crm_config_err("Resetting %s loss-policy to 'stop': fencing is not configured", + ticket->id); + loss_policy = "stop"; + } + } + + if (new_rsc_ticket->loss_policy == loss_ticket_fence) { crm_debug("On loss of ticket '%s': Fence the nodes running %s (%s)", new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, role2text(new_rsc_ticket->role_lh)); - new_rsc_ticket->loss_policy = loss_ticket_fence; } else if (safe_str_eq(loss_policy, "freeze")) { crm_debug("On loss of ticket '%s': Freeze %s (%s)",
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