Red Hat Bugzilla – Bug 129236
cman_tool leave: returns sucess on non-leave
Last modified: 2010-01-11 21:55:55 EST
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 $?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
cman_tool now calls die() if there are active subsystems when "leave"
Checking in main.c;
/cvs/cluster/cluster/cman/cman_tool/main.c,v <-- main.c
new revision: 1.5; previous revision: 1.4
verified to be fixed
Updating version to the right level in the defects. Sorry for the storm.