Bug 129236 - cman_tool leave: returns sucess on non-leave
Summary: cman_tool leave: returns sucess on non-leave
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: gfs
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Teigland
QA Contact: GFS Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-05 14:11 UTC by Derek Anderson
Modified: 2010-01-12 02:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-26 22:40:54 UTC
Embargoed:


Attachments (Terms of Use)

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.


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