Bug 179627

Summary: Enhance cman initscript to do cman_tool leave remove on stop
Product: [Retired] Red Hat Cluster Suite Reporter: Jonathan Earl Brassow <jbrassow>
Component: cmanAssignee: Christine Caulfield <ccaulfie>
Status: CLOSED CURRENTRELEASE QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: cluster-maint, kupcevic, teigland
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-24 14:38:32 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:
Attachments:
Description Flags
This patch should do the trick. none

Description Jonathan Earl Brassow 2006-02-01 18:57:21 UTC
Description of problem:
Customers are asking for the ability to take down 2 nodes at a time in a four
node cluster for maintainance.  If the init script did a 'cman_tool leave
remove' instead of just 'cman_tool leave', this would be possible, right?

Note, a 'service cman restart' should probably only do a "leave", while a
'service cman stop' should do a "leave remove".

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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Jonathan Earl Brassow 2006-02-01 19:26:22 UTC
Created attachment 123985 [details]
This patch should do the trick.

Patch makes 'stop' do 'cman_tool leave remove' and leaves 'restart' to do
'cman_tool leave'

Comment 3 Christine Caulfield 2006-02-02 16:21:20 UTC
The patch looks OK to me. That than an if/then/else you could, of course just do 

   cman_tool leave $2

Comment 4 Jonathan Earl Brassow 2006-02-02 16:57:52 UTC
yeah, but i wouldn't want someone doing 'service cman stop bumpkin'... wanted to check for valid 
option.

Comment 5 Jonathan Earl Brassow 2006-02-02 17:37:02 UTC
ok, you should now be able to bring a cluster down to two nodes by shutting down
the other machines...