Bug 1275919 - [New] - Message shown in gluster vol tier <volname> status output is incorrect.
Summary: [New] - Message shown in gluster vol tier <volname> status output is incorrect.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: tier
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Mohamed Ashiq
QA Contact: Nag Pavan Chilakam
URL:
Whiteboard:
Depends On:
Blocks: 1278927 1279309
TreeView+ depends on / blocked
 
Reported: 2015-10-28 06:38 UTC by RamaKasturi
Modified: 2017-03-25 14:24 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.7.5-6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1278927 (view as bug list)
Environment:
Last Closed: 2017-03-25 14:24:05 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.