Bug 890640

Summary: [FEAT] DHT - rebalance - rebalance status o/p should be different for 'fix-layout' option, it should not show 'Rebalanced-files' , 'Size', 'Scanned' etc as it is not migrating any files.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rachana Patel <racpatel>
Component: distributeAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED DEFERRED QA Contact: Matt Zywusko <mzywusko>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0CC: mzywusko, rhs-bugs, spalai, vagarwal, vbellur
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1225718 1286572 (view as bug list) Environment:
Last Closed: 2015-11-30 09:33:11 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:
Bug Depends On:    
Bug Blocks: 1286572    

Description Rachana Patel 2012-12-28 11:28:10 UTC
Description of problem:
 rebalance - rebalance status o/p should be different for 'fix-layout' option, it should not show 'Rebalanced-files' , 'Size', 'Scanned' etc as it is not migrating any files. it should show status of layout fixing.

Version-Release number of selected component (if applicable):
3.3.0.5rhs-40

How reproducible:
always

Steps to Reproduce:
1. Create a Distributed volume having 3 or more sub-volumes on multiple server and start that volume.

2. Fuse Mount the volume from the client-1 using “mount -t glusterfs  server:/<volume> <client-1_mount_point>”

3. From mount point create some dirs and files inside it.

4. Execute rebalance.
[root@localhost ~]# gluster volume rebalance defect fix-layout start
Starting rebalance on volume defect has been successful

5. check status
[root@localhost ~]# gluster volume rebalance defect status
                                    Node Rebalanced-files          size       scanned      failures         status
                               ---------      -----------   -----------   -----------   -----------   ------------
                               localhost                0            0            0            0      completed
                            10.70.35.173                0            0            0            0      completed
                            10.70.35.170                0            0            0            0      completed

  
Actual results:
it shows 'Rebalanced-files' , 'Size', 'Scanned' etc

Expected results:
When user has opted only fix-layout this values will be zero and no use of showing those column in status. It can show no of dir for which layout has been fixed or it can show simply status column only.

Additional info:

Comment 2 Scott Haines 2013-09-27 17:07:32 UTC
Targeting for 3.0.0 (Denali) release.

Comment 5 Vivek Agarwal 2014-04-07 11:41:13 UTC
Per bug triage, between dev, PM and QA, moving these out of denali

Comment 6 Nagaprasad Sathyanarayana 2014-05-06 10:35:12 UTC
BZs not targeted for Denali.

Comment 9 Susant Kumar Palai 2015-11-30 09:33:11 UTC
Cloning this to 3.1. To be fixed in future.