Bug 149292 - RFE: add parameter to cman_tool to timeout wait commands
Summary: RFE: add parameter to cman_tool to timeout wait commands
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: cman
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Christine Caulfield
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-22 00:42 UTC by Adam "mantis" Manthei
Modified: 2009-04-24 14:36 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-24 14:36:25 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam "mantis" Manthei 2005-02-22 00:42:46 UTC
Description of problem:
An option to cman_tool that allowed for a configurable timeout on the
wait commands (cman_tool wait, cman_tool -w join and cman_tool -w
leave) would be a useful feaure for initscripts.  This would give the
script the ability to terminate a cman_tool operation if it failed to
establish a connection or quorum on boot or shutdown.  

For eample: Quorum is needed in order for GFS to mount.  If the script
is unable to detect that the cluster is quorate after a predetermined
amount of time it should be allowed to fail so that the node can
continue to boot.   Failure to do so will result in operable nodes
until quorum is restablished.  In situations where only one node is
able to boot in the cluster, that the node will not be accessbile
unless booted into single user mode or run level 2.

Adding a timer to cman_tool is the easiest way to do this, but other
work arounds can be implemented in the initscripts if need be.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Christine Caulfield 2005-02-23 16:45:34 UTC
Added. This also does the retry mentioned in 149288. Please read the
man page before using it, it might not do quite what you expect in
some circumstances.

Checking in cman_tool/cman_tool.h;
/cvs/cluster/cluster/cman/cman_tool/cman_tool.h,v  <--  cman_tool.h
new revision: 1.3.2.3; previous revision: 1.3.2.2
done
Checking in cman_tool/join.c;
/cvs/cluster/cluster/cman/cman_tool/join.c,v  <--  join.c
new revision: 1.12.2.3; previous revision: 1.12.2.2
done
Checking in cman_tool/main.c;
/cvs/cluster/cluster/cman/cman_tool/main.c,v  <--  main.c
new revision: 1.12.2.5; previous revision: 1.12.2.4
done
Checking in man/cman_tool.8;
/cvs/cluster/cluster/cman/man/cman_tool.8,v  <--  cman_tool.8
new revision: 1.4.2.4; previous revision: 1.4.2.3
done


Comment 2 Christine Caulfield 2009-04-24 14:36:25 UTC
This has been in the product for ages now.


Note You need to log in before you can comment on or make changes to this bug.