Bug 1220729

Summary: After reseting the scrubber still vol info shows scrubber throttle and frequency information and it missleads
Product: [Community] GlusterFS Reporter: RajeshReddy <rmekala>
Component: bitrotAssignee: bugs <bugs>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact: bugs <bugs>
Priority: unspecified    
Version: mainlineCC: bugs, ggarg, mzywusko
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-18 10:44:54 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:

Description RajeshReddy 2015-05-12 09:45:16 UTC
Description of problem:
=============================
After reseting the scrubber still vol info shows scrubber throttle and frequency information and it missleads 

Version-Release number of selected component (if applicable):
======================
glusterfs-server-3.7.0beta1-0.69.git1a32479.el6.x86_64


How reproducible:
=====================
always


Steps to Reproduce:
=======================
1.Create a volume and enable bitrot 
2.Set throttle to normal using gluster vol bitrot ECVOL3 scrub-throttle normal
3.Reset the scrubber and check the vol info and still it shows scrub-throttle, as part of volume reset scrubber twill be disabled and after scrubber is disabled scrubber throttle and frequency are obsolete so need not to show in the vol info 

Actual results:


Expected results:


Additional info:

Comment 1 Gaurav Kumar Garg 2015-05-18 10:44:00 UTC
Rajesh, this is a expected behaviour. 

reseting a volume means bringing that option value to default value.

there are two way of resetting option for given volume.

first is gluster volume reset <volname> <option name>    it will reset particular option <option name>. 

second is resetting all the option value.  gluster volume reset <volname>
it will reset all unprotected volume option.


so you are resetting scrub option. after resetting scrub option scrub value goes to default value. but scrub-throttle, scrub-frequency value will remain same.


by default for scrubber if bitrot is enable then scrubber is automatically enable without setting it.

Its not a bug.  Its a expected expected behaviour.