Bug 1275917

Summary: [New] - Promote and demote files in gluster volume tier <vol_name> status are misleading
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RamaKasturi <knarra>
Component: tierAssignee: hari gowtham <hgowtham>
Status: CLOSED WONTFIX QA Contact: Bala Konda Reddy M <bmekala>
Severity: medium Docs Contact:
Priority: high    
Version: rhgs-3.1CC: knarra, mliyazud, rhs-bugs, sankarshan, smohan
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1358580 (view as bug list) Environment:
Last Closed: 2018-02-06 17:43:21 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: 1358580    

Description RamaKasturi 2015-10-28 06:28:37 UTC
Description of problem:
Files in a tiered volume gets promoted and demoted based on  how frequently they are accessed and user can see these numbers in gluster volume tier <vol_name> status output.
I see that the numbers in the promoted and demoted files column are growing cumulatively irrespective of actual number of files present in the volume.

I think there should be a reset introduced some where to show the correct number of files which are getting promoted/demoted otherwise it would create confusion to the user as there are always more number of files listed in the gluster volume tier <vol_name> status output than what is actually present in the volume.

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 an EC volume as cold tier and attach distribute replicate as hot tier.
2. Mount the tiered volume using fuse mount and create 50 files.
3. Access some files so that they get promoted.

Actual results:
Though there are only 50 files in the actual volume tier status output shows that there are more number of files than that.

[root@dhcp37-218 ~]# gluster vol tier vol_ec status
Node                 Promoted files       Demoted files        Status              
---------            ---------            ---------            ---------           
localhost            234                  0                    in progress         
10.70.37.113         0                    235                  in progress         
volume rebalance: vol_ec: success: 


Expected results:
Tier status should only show the actual no of files which gets promoted or demoted and files should not be more than actual no of files present in the mount point.

Additional info:

Comment 2 Vivek Agarwal 2015-10-30 18:20:55 UTC
Seems to be difficult, the tiering process is continously running. At what point in time does it reset to zero and then count forward again

Comment 7 Shyamsundar 2018-02-06 17:43:21 UTC
Thank you for your bug report.

We are no longer working on any improvements for Tier. This bug will be set to CLOSED WONTFIX to reflect this. Please reopen if the rfe is deemed critical.

Comment 8 Red Hat Bugzilla 2023-09-14 03:12:05 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days