Bug 801322

Summary: [5fdd65f5f4f5df1d28b0fb4f7efed226d5db1b3c] - rebalance status says rebalance completed before actually completing the rebalance
Product: [Community] GlusterFS Reporter: M S Vishwanath Bhat <vbhat>
Component: unclassifiedAssignee: shishir gowda <sgowda>
Status: CLOSED CURRENTRELEASE QA Contact: M S Vishwanath Bhat <vbhat>
Severity: medium Docs Contact:
Priority: medium    
Version: pre-releaseCC: gluster-bugs, mzywusko, nsathyan, sgowda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
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:56:14 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:
Bug Depends On:    
Bug Blocks: 817967    

Description M S Vishwanath Bhat 2012-03-08 09:57:31 UTC
Description of problem:
'gluster volume rebalace status' displays 'rebalance completed!' before completing the rebalance.

Version-Release number of selected component (if applicable):
git master with head at 5fdd65f5f4f5df1d28b0fb4f7efed226d5db1b3c

How reproducible:
Often

Steps to Reproduce:
1. Create a 1 node distribute volume.
2. Create some data like untar the linux kernel1
3. Add one more brick using add-brick
4. Run 'rebalance start' and 'rebalance status' immediately  
  
Actual results:
'rebalance status' displays rebalance completed, but rebalance is not completed yet.

Expected results:
rebalance status should say which file is being moved and 'rebalance completed' should be displayed only after successful completion of rebalance.

Additional info:

Comment 1 shishir gowda 2012-03-08 10:31:06 UTC
Were bricks on the same node?
If not, as of now if rebalance completes on the node where the command was issued, we get the status as completed, even if the migration is in progress.

Comment 2 M S Vishwanath Bhat 2012-03-08 10:37:48 UTC
(In reply to comment #1)
> Were bricks on the same node?
> If not, as of now if rebalance completes on the node where the command was
> issued, we get the status as completed, even if the migration is in progress.

I issued the rebalance command on the node which had the newly added brick. After the 'rebalance completed' message is displayed, 'du -sh' on the back-end export of same node started increasing. So migration on that node was still happening when rebalance completed was displayed.

Comment 3 shishir gowda 2012-03-08 10:51:24 UTC
This is a know issue, and a constraint right now.

The parallel rebalance now is a push operation, i.e, rebalance process of the src node is the actual worker in this case. Hence the rebalance process on the dst ran to completion, as it does not do actual migration.

We can keep this bug open, as we need to handle this issue.

Comment 4 Anand Avati 2012-03-15 04:52:54 UTC
CHANGE: http://review.gluster.com/2942 (dht: Rebalance status should display status from each process) merged in master by Vijay Bellur (vijay)

Comment 5 M S Vishwanath Bhat 2012-05-30 13:00:56 UTC
Now rebalance status is displayed for each node in the cluster. Moving to verified.