Bug 803971

Summary: Return status is 0 even though rebalance operation was unsuccessful.
Product: [Community] GlusterFS Reporter: Vijaykumar Koppad <vkoppad>
Component: cliAssignee: shylesh <shmohan>
Status: CLOSED CURRENTRELEASE QA Contact: Vijaykumar Koppad <vkoppad>
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: bbandari, gluster-bugs, sgowda
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:53:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: 3.3.0qa42 Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 817967    

Description Vijaykumar Koppad 2012-03-16 07:16:04 UTC
Description of problem:
root@vostro:~# gluster volume rebalance doa fix-layout start
Starting rebalance on volume doa has been successful
root@vostro:~# gluster volume rebalance doa fix-layout stop
Usage: volume rebalance <VOLNAME> [fix-layout] {start|stop|status} [force]
root@vostro:~# echo $?
0
root@vostro:~# gluster volume rebalance doa stop
                                    Node Rebalanced-files          size       scanned         status
                               ---------      -----------   -----------   -----------   ------------
    008069aa-cc3a-479a-905b-681c447923f8                0            0            0     completed
Stopped rebalance process on volume doa 


Version-Release number of selected component (if applicable):
[5e50175f56d05ab6c1295b0e0f0c11695e49c277]3.3.

How reproducible:always

Comment 1 Anand Avati 2012-04-24 16:42:10 UTC
CHANGE: http://review.gluster.com/3216 (cli: Return -1 if fix-layout stop is issued) merged in master by Vijay Bellur (vijay)