Bug 129236

Summary: cman_tool leave: returns sucess on non-leave
Product: [Retired] Red Hat Cluster Suite Reporter: Derek Anderson <danderso>
Component: gfsAssignee: David Teigland <teigland>
Status: CLOSED CURRENTRELEASE QA Contact: GFS Bugs <gfs-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: ccaulfie
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-26 22:40:54 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:

Description Derek Anderson 2004-08-05 14:11:22 UTC
Description of problem:
Running 'cman_tool leave' on a node that has active subsystems like
the fenced will return 0 when it doesn't actually succeed.  This is a
nitpick, but will be useful for scripting.

[root@link-12 root]# cman_tool leave
Can't leave cluster while there are 1 active subsystems
[root@link-12 root]# echo $?
0
[root@link-12 root]#

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 2004-08-09 12:29:10 UTC
cman_tool now calls die() if there are active subsystems when "leave"
is called.

Checking in main.c;
/cvs/cluster/cluster/cman/cman_tool/main.c,v  <--  main.c
new revision: 1.5; previous revision: 1.4
done


Comment 2 Corey Marthaler 2004-08-26 22:40:54 UTC
verified to be fixed

Comment 3 Kiersten (Kerri) Anderson 2004-11-16 19:09:09 UTC
Updating version to the right level in the defects.  Sorry for the storm.