Bug 1291052 - [tiering]: read/write freq-threshold allows negative values
[tiering]: read/write freq-threshold allows negative values
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: tier (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: RHGS 3.1.2
Assigned To: Bug Updates Notification Mailing List
Sweta Anandpara
: ZStream
Depends On:
Blocks: 1291603 1292359
  Show dependency treegraph
Reported: 2015-12-13 03:18 EST by krishnaram Karthick
Modified: 2016-09-17 11:42 EDT (History)
5 users (show)

See Also:
Fixed In Version: glusterfs-3.7.5-12
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1291603 (view as bug list)
Last Closed: 2016-03-01 01:02:37 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
server logs (31.54 KB, application/vnd.oasis.opendocument.text)
2015-12-18 09:36 EST, Sweta Anandpara
no flags Details

  None (edit)
Description krishnaram Karthick 2015-12-13 03:18:24 EST
Description of problem:

cluster.write-freq-threshold and cluster.read-freq-threshold allows negative values to be set.

[root@dhcp42-47 ~]# gluster vol set tier-vol-01 cluster.write-freq-threshold -1
volume set: success
[root@dhcp42-47 ~]# gluster vol set tier-vol-01 cluster.read-freq-threshold -1
volume set: success
[root@dhcp42-47 ~]# gluster vol info
Volume Name: tier-vol-01
Type: Tier
Volume ID: 78d1fc18-5d0a-452d-ab26-b78c15655c60
Status: Started
Number of Bricks: 16
Transport-type: tcp
Hot Tier :
Hot Tier Type : Distributed-Replicate
Number of Bricks: 2 x 2 = 4
Cold Tier:
Cold Tier Type : Distributed-Disperse
Number of Bricks: 2 x (4 + 2) = 12
Options Reconfigured:
cluster.read-freq-threshold: -1
cluster.write-freq-threshold: -1
performance.readdir-ahead: on
cluster.tier-mode: cache
features.record-counters: off
features.ctr-enabled: on

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

How reproducible:

Steps to Reproduce:
1. create a tiered volume
2. set cluster.read-freq-threshold and cluster.write-freq-threshold to negative value

Actual results:
Allows negative integers 

Expected results:
Only positive integers should be allowed

Additional info:
Comment 2 krishnaram Karthick 2015-12-13 03:24:49 EST
sosreports are available here --> http://rhsqe-repo.lab.eng.blr.redhat.com/sosreports/1291052/
Comment 3 krishnaram Karthick 2015-12-14 01:14:05 EST
with negative values set for read and write freq, promotions do happen with single read or write. i.e, the behavior will remain same as if cluster.write-freq-threshold or cluster.read-freq-threshold is not set.
Comment 4 Joseph Elwin Fernandes 2015-12-17 03:15:54 EST
Comment 5 Sweta Anandpara 2015-12-18 09:33:57 EST
Tested and verified this on the build glusterfs-3.7.5-12.el7rhgs.x86_64

Verified the below tiering config options for negative values, and other not-acceptable values 

An error message is shown for non-compatible values. There are a couple of language/grammar errors seen though, like: 

>> cluster.write-freq-threshold expects a positiveinteger value.
(space missing between 'positive' and 'integer')
>> cluster.tier-demote-frequency expects a positive integer value greater than 0
('greater than 0' is redundant. 'positive integer' suffices)

I could add the above observation in a blanket bug that might be raised for English language errors.

Moving the present bug to verified in 3.1.2. Logs are attached.
Comment 6 Sweta Anandpara 2015-12-18 09:36 EST
Created attachment 1107183 [details]
server logs
Comment 8 errata-xmlrpc 2016-03-01 01:02:37 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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