Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 400211

Summary: RFE: Provide a method to fail over a service to another node after X number of restarts.
Product: Red Hat Enterprise Linux 5 Reporter: Lon Hohberger <lhh>
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1CC: cluster-maint, rkenna, rmccabe, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0353 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 14:30:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 247139    
Bug Blocks: 429350, 431130    

Description Lon Hohberger 2007-11-26 21:49:32 UTC
For RH clustering the default recovery policy (when no recovery policy is
specified) on RHEL4 cluster is restart - "Restart the service in the node the
service is currently located.".

The desired behavior is to retry a restart on the same node, if that fails again
a failover to another node should be done.

Current default behavior appears endless attempts to restart.

RHEL3 had relocate after X restarts as well as a notion of "false"
starts, which is a special kind of restart.

-- Additional comment from lhh on 2007-11-20 18:06 EST --

Following patch allows a user to set max_restarts="x" and
restart_expire_time="y" in cluster.conf for services and virtual machines.

Basically, restart_expire_time allows one to throttle restarts - that is, if X
restarts occur within Y seconds, relocate the service instead of restarting it.
 Requires recovery_policy="restart" (which is the default).

Also makes the parsing of time values more robust; you can now enter things
like : 1h30m as part of resource metadata or in cluster.conf.

-- Additional comment from lhh on 2007-11-20 18:55 EST --
Created an attachment (id=265531)
Tested patch


Patches in CVS.

Comment 2 Lon Hohberger 2007-11-26 21:52:12 UTC
*** Bug 247139 has been marked as a duplicate of this bug. ***

Comment 3 RHEL Program Management 2007-11-26 21:54:28 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 Lon Hohberger 2008-02-01 15:15:33 UTC
*** Bug 431130 has been marked as a duplicate of this bug. ***

Comment 7 errata-xmlrpc 2008-05-21 14:30:46 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0353.html