Bug 815306

Summary: rebalance status after rebalance stop says "completed"
Product: [Community] GlusterFS Reporter: M S Vishwanath Bhat <vbhat>
Component: cliAssignee: shishir gowda <sgowda>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: pre-releaseCC: gluster-bugs, mzywusko, nsathyan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-25 11:35:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description M S Vishwanath Bhat 2012-04-23 10:26:52 UTC
Description of problem:
Was running rebalance (rebalance start). Now rebalance status says the rebalance is "in progress". Now I stop the rebalance using 'rebalance stop'. After rebalance stop if I run the 'rebalance status' I get rebalance completed message.

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

How reproducible:
Consistent

Steps to Reproduce:
1. Create and start a distribute volume. (282 dist-rep for ex)
2. Now create some data on the mountpoint. (may be kernel untar)
3. run 'rebalance <volname> start' - You should get "rebalance started successfully" message.
4. Run 'rebalance <volname> status' -- Says "In Progress"
5. Run 'rebalance <volname> stop' -- You should get stopped message.
6. Now Run 'rebalance <volname> status' 
  
Actual results:
[root@gqac014 teragen-dir4]# gluster v rebalance hosdu start
Starting rebalance on volume hosdu has been successful
[root@gqac014 teragen-dir4]# gluster v rebalance hosdu status
                                    Node Rebalanced-files          size       scanned      failures         status
                               ---------      -----------   -----------   -----------   -----------   ------------
                               localhost                0            0            0            0    in progress
      gqac015.sbu.lab.eng.bos.redhat.com                0            0            0            0    in progress
      gqac016.sbu.lab.eng.bos.redhat.com                0            0            0            0    in progress
      gqac017.sbu.lab.eng.bos.redhat.com                0            0            0            0    in progress

[root@gqac014 teragen-dir4]# gluster v rebalance hosdu status
                                    Node Rebalanced-files          size       scanned      failures         status
                               ---------      -----------   -----------   -----------   -----------   ------------
                               localhost                0            0          622            0    in progress
      gqac016.sbu.lab.eng.bos.redhat.com                0            0          622            0    in progress
      gqac015.sbu.lab.eng.bos.redhat.com                0            0          622            0    in progress
      gqac017.sbu.lab.eng.bos.redhat.com                0            0          622            0    in progress

[root@gqac014 teragen-dir4]# gluster v rebalance hosdu stop
                                    Node Rebalanced-files          size       scanned      failures         status
                               ---------      -----------   -----------   -----------   -----------   ------------
                               localhost                0            0         1900            0        stopped
      gqac015.sbu.lab.eng.bos.redhat.com                0            0         1900            0        stopped
      gqac017.sbu.lab.eng.bos.redhat.com                0            0         1900            0        stopped
      gqac016.sbu.lab.eng.bos.redhat.com                0            0         1900            0        stopped
Stopped rebalance process on volume hosdu 

[root@gqac014 teragen-dir4]# gluster v rebalance hosdu status
                                    Node Rebalanced-files          size       scanned      failures         status
                               ---------      -----------   -----------   -----------   -----------   ------------
                               localhost                0            0         1900            0      completed
      gqac015.sbu.lab.eng.bos.redhat.com                0            0         1900            0      completed
      gqac016.sbu.lab.eng.bos.redhat.com                0            0         1900            0      completed
      gqac017.sbu.lab.eng.bos.redhat.com                0            0         1900            0      completed

[root@gqac014 teragen-dir4]# gluster v rebalance hosdu status
                                    Node Rebalanced-files          size       scanned      failures         status
                               ---------      -----------   -----------   -----------   -----------   ------------
                               localhost                0            0         1900            0      completed
      gqac015.sbu.lab.eng.bos.redhat.com                0            0         1900            0      completed
      gqac016.sbu.lab.eng.bos.redhat.com                0            0         1900            0      completed
      gqac017.sbu.lab.eng.bos.redhat.com                0            0         1900            0      completed


Expected results:
Rebalance status before starting rebalance or after stopping it should say the "rebalance is not started on the volume" or something similar.

Comment 1 Amar Tumballi 2012-04-23 11:23:24 UTC
same as bug 807126

Comment 2 shishir gowda 2012-04-25 11:35:17 UTC

*** This bug has been marked as a duplicate of bug 813167 ***