Bug 1220713 - Scrubber should be disabled once bitrot is reset
Summary: Scrubber should be disabled once bitrot is reset
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: bitrot
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Satish Mohan
QA Contact:
bugs@gluster.org
URL:
Whiteboard:
Depends On:
Blocks: 1228045
TreeView+ depends on / blocked
 
Reported: 2015-05-12 09:23 UTC by RajeshReddy
Modified: 2016-07-13 22:34 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.8rc2
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1224161 1228045 (view as bug list)
Environment:
Last Closed: 2016-06-16 13:00:40 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description RajeshReddy 2015-05-12 09:23:16 UTC
Description of problem:
=================================
Scrubber should be disabled once bitrot is reset 


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.Enable bitrot on volume as part of this both bitd and scrub demons will be started 
2.using gluster vol reset command reset bitrot, but only bitrot is reset to default (disable) and still scrubber is active state 

root@rhs-client37 beta2]# gluster vol reset ECVOL bitrot
volume reset: failed: 'features.bitrot' is protected. To reset use 'force'.
[root@rhs-client37 beta2]# gluster vol reset ECVOL bitrot force
volume reset: success: reset volume successful
[root@rhs-client37 beta2]# gluster vol info ECVOL
 
Volume Name: ECVOL
Type: Disperse
Volume ID: f8f88610-17fb-4db5-9ced-4dcb215d8e2c
Status: Started
Number of Bricks: 1 x (4 + 2) = 6
Transport-type: tcp
Bricks:
Brick1: 10.70.33.235:/rajesh3/brick7
Brick2: 10.70.33.235:/rajesh3/brick8
Brick3: 10.70.33.235:/rajesh3/brick9
Brick4: 10.70.33.229:/rajesh3/brick7
Brick5: 10.70.33.229:/rajesh3/brick8
Brick6: 10.70.33.229:/rajesh3/brick9
Options Reconfigured:
features.scrub-throttle: aggressive
features.scrub: Active
features.uss: enable


Expected results:
========================
Scrub also should be reset to default (disable) once bitrot is reset

Additional info:

Comment 1 Anand Avati 2015-05-27 09:13:18 UTC
REVIEW: http://review.gluster.org/10936 (bitrot/glusterd: scrub option should be disabled once bitrot option is reset) posted (#1) for review on master by Gaurav Kumar Garg (ggarg)

Comment 2 Anand Avati 2015-05-28 04:54:11 UTC
REVIEW: http://review.gluster.org/10936 (bitrot/glusterd: scrub option should be disabled once bitrot option is reset) posted (#2) for review on master by Atin Mukherjee (amukherj)

Comment 3 Anand Avati 2015-05-28 09:49:39 UTC
REVIEW: http://review.gluster.org/10936 (bitrot/glusterd: scrub option should be disabled once bitrot option is reset) posted (#4) for review on master by Gaurav Kumar Garg (ggarg)

Comment 4 Anand Avati 2015-05-28 09:59:46 UTC
REVIEW: http://review.gluster.org/10936 (bitrot/glusterd: scrub option should be disabled once bitrot option is reset) posted (#5) for review on master by Gaurav Kumar Garg (ggarg)

Comment 5 Anand Avati 2015-06-03 09:25:40 UTC
REVIEW: http://review.gluster.org/10936 (bitrot/glusterd: scrub option should be disabled once bitrot option is reset) posted (#6) for review on master by Gaurav Kumar Garg (ggarg)

Comment 6 Anand Avati 2015-06-04 06:38:03 UTC
COMMIT: http://review.gluster.org/10936 committed in master by Venky Shankar (vshankar) 
------
commit 79d8916929f7d5b85a09ae9b75eadf945a3e11fb
Author: Gaurav Kumar Garg <ggarg>
Date:   Wed May 27 14:36:24 2015 +0530

    bitrot/glusterd: scrub option should be disabled once bitrot option is reset
    
    Scrubber options should be disabled from the dictionary if user reset
    bitrot option.
    
    Change-Id: Ic7e390cf88b9b749f0ada8bbd4632f4cc0c4aff9
    BUG: 1220713
    Signed-off-by: Gaurav Kumar Garg <ggarg>
    Reviewed-on: http://review.gluster.org/10936
    Reviewed-by: Atin Mukherjee <amukherj>
    Tested-by: NetBSD Build System <jenkins.org>
    Reviewed-by: Venky Shankar <vshankar>

Comment 7 Nagaprasad Sathyanarayana 2015-10-25 14:44:57 UTC
Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well.

Comment 9 Niels de Vos 2016-06-16 13:00:40 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


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