Bug 1275919

Summary: [New] - Message shown in gluster vol tier <volname> status output is incorrect.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RamaKasturi <knarra>
Component: tierAssignee: Mohamed Ashiq <mliyazud>
Status: CLOSED CURRENTRELEASE QA Contact: Nag Pavan Chilakam <nchilaka>
Severity: low Docs Contact:
Priority: medium    
Version: rhgs-3.1CC: dlambrig, mliyazud, rhs-bugs, sankarshan, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.7.5-6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1278927 (view as bug list) Environment:
Last Closed: 2017-03-25 14:24:05 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: 1278927, 1279309    

Description RamaKasturi 2015-10-28 06:38:52 UTC
Description of problem:
Executing 'gluster vol tier <volname> status prints the following output

 gluster vol tier vol_ec status
Node                 Promoted files       Demoted files        Status              
---------            ---------            ---------            ---------           
localhost            487                  0                    in progress         
10.70.37.113         0                    488                  in progress         
volume rebalance: vol_ec: success: 

The above output shows a message which says "volume rebalance : <vol_name> : success". This message is incorrect and it should not be displayed.

Version-Release number of selected component (if applicable):
glusterfs-3.7.5-0.3.el7rhgs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. create a tiered volume
2. Mount using fuse and create files.
3. Access some files in the volume so that it gets promoted.
4. Run the command 'gluster vol tier <vol_name> status'

Actual results:
Tier status prints message which reads 'rebalance is successful'

Expected results:
tier status output should not print messages related to rebalance.

Additional info:

Comment 3 Mohamed Ashiq 2015-11-09 07:45:03 UTC
patch:

https://code.engineering.redhat.com/gerrit/61037

Comment 8 Nag Pavan Chilakam 2015-11-10 11:19:23 UTC
works on latest build as desired:
[root@zod ~]# gluster vol tier ctr status
Node                 Promoted files       Demoted files        Status              
---------            ---------            ---------            ---------           
localhost            3                    0                    in progress         
yarrow               0                    21                   in progress         
Tiering Migration Functionality: ctr: success
[root@zod ~]# gluster vol rebal ctr tier status
Node                 Promoted files       Demoted files        Status              
---------            ---------            ---------            ---------           
localhost            3                    0                    in progress         
yarrow               0                    21                   in progress         
Tiering Migration Functionality: ctr: success



[root@zod ~]# rpm -qa|grep gluster
glusterfs-libs-3.7.5-6.el7rhgs.x86_64
glusterfs-fuse-3.7.5-6.el7rhgs.x86_64
glusterfs-3.7.5-6.el7rhgs.x86_64
glusterfs-server-3.7.5-6.el7rhgs.x86_64
glusterfs-client-xlators-3.7.5-6.el7rhgs.x86_64
glusterfs-cli-3.7.5-6.el7rhgs.x86_64
glusterfs-api-3.7.5-6.el7rhgs.x86_64
glusterfs-debuginfo-3.7.5-6.el7rhgs.x86_64