Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1224240 - BitRot :- scrub pause/resume should give proper error message if scrubber is already paused/resumed and Admin tries to perform same operation
BitRot :- scrub pause/resume should give proper error message if scrubber is ...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: bitrot (Show other bugs)
3.1
x86_64 Linux
medium Severity medium
: ---
: RHGS 3.1.0
Assigned To: Bug Updates Notification Mailing List
RajeshReddy
:
Depends On:
Blocks: 1202842 1223636
  Show dependency treegraph
 
Reported: 2015-05-22 07:17 EDT by RajeshReddy
Modified: 2016-09-17 10:24 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1210684
Environment:
Last Closed: 2015-07-29 00:51:52 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 04:26:26 EDT

  None (edit)
Description RajeshReddy 2015-05-22 07:17:01 EDT
+++ This bug was initially created as a clone of Bug #1210684 +++

Description of problem:
=======================
If Scrubber is already pasued then pause command should give proper error message rather than saying 'success'. Same is expected for resume functionality.


Version-Release number of selected component (if applicable):
=============================================================
3.7dev-0.952.gita7f1d08.el6.x86_64

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

Steps to Reproduce:
===================
1. create and mount volume.
2. enable bitrot
3. pause scrub process and check volume info.
4. try to pause scrub process.
5. Resume scrub process and check Volume info.
6. try to resume scrub process again


Actual Result:-
===============
On resuming/pausing it again it says 'volume bitrot: success' 

Expect Result:-
===============
On resuming/pausing it should say it is already paused/resumed

--- Additional comment from Anand Avati on 2015-04-13 03:11:05 EDT ---

REVIEW: http://review.gluster.org/10209 (bitrot/glusterd: Bitrot scrub pause/resume should give proper error) posted (#1) for review on master by Gaurav Kumar Garg (ggarg@redhat.com)

--- Additional comment from Anand Avati on 2015-04-29 10:53:37 EDT ---

REVIEW: http://review.gluster.org/10209 (bitrot/glusterd: Bitrot scrub pause/resume should give proper error) posted (#2) for review on master by Gaurav Kumar Garg (ggarg@redhat.com)

--- Additional comment from Anand Avati on 2015-05-04 03:04:17 EDT ---

REVIEW: http://review.gluster.org/10209 (bitrot/glusterd: Bitrot scrub pause/resume should give proper error) posted (#3) for review on master by Gaurav Kumar Garg (ggarg@redhat.com)

--- Additional comment from Anand Avati on 2015-05-04 05:37:53 EDT ---

REVIEW: http://review.gluster.org/10209 (bitrot/glusterd: Bitrot scrub pause/resume should give proper error) posted (#4) for review on master by Gaurav Kumar Garg (ggarg@redhat.com)

--- Additional comment from Anand Avati on 2015-05-05 02:32:10 EDT ---

REVIEW: http://review.gluster.org/10209 (bitrot/glusterd: Bitrot scrub pause/resume should give proper error) posted (#5) for review on master by Gaurav Kumar Garg (ggarg@redhat.com)

--- Additional comment from Anand Avati on 2015-05-05 07:25:02 EDT ---

REVIEW: http://review.gluster.org/10576 (bitrot/glusterd: Bitrot scrub pause/resume should give proper error) posted (#1) for review on release-3.7 by Gaurav Kumar Garg (ggarg@redhat.com)

--- Additional comment from Anand Avati on 2015-05-05 14:19:18 EDT ---

REVIEW: http://review.gluster.org/10209 (bitrot/glusterd: Bitrot scrub pause/resume should give proper error) posted (#6) for review on master by Gaurav Kumar Garg (ggarg@redhat.com)

--- Additional comment from Anand Avati on 2015-05-06 02:38:31 EDT ---

REVIEW: http://review.gluster.org/10209 (bitrot/glusterd: Bitrot scrub pause/resume should give proper error) posted (#7) for review on master by Gaurav Kumar Garg (ggarg@redhat.com)

--- Additional comment from Anand Avati on 2015-05-07 03:27:29 EDT ---

COMMIT: http://review.gluster.org/10209 committed in master by Kaushal M (kaushal@redhat.com) 
------
commit d68a2dbb3a4be89a4a45661310ae3f32542df20f
Author: Gaurav Kumar Garg <ggarg@redhat.com>
Date:   Mon Apr 13 12:34:26 2015 +0530

    bitrot/glusterd: Bitrot scrub pause/resume should give proper error
    
    bitrot scrubber paused/resume command should give proper error messages if
    scrubber already pause/resume and user again try to perform same
    operation on a volume.
    
    Change-Id: I01ad69c80f03b177535a4e5f1c95ab7709a804b0
    BUG: 1210684
    Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
    Reviewed-on: http://review.gluster.org/10209
    Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
    Tested-by: Gluster Build System <jenkins@build.gluster.com>
    Reviewed-by: Kaushal M <kaushal@redhat.com>
Comment 2 Gaurav Kumar Garg 2015-05-25 06:25:02 EDT
http://review.gluster.org/10209 patch already available in 3.7 branch. moving status of this bug as a QA
Comment 3 RajeshReddy 2015-05-25 06:37:02 EDT
Tested with glusterfs-fuse-3.7.0-2.el6rhs.x86_64 and once scruber is on pause state if we run command to pause the scrubber giving proper message 

[root@rhs-client38 CIFS]# gluster vol bitrot smb scrub pause 
volume bitrot: success
[root@rhs-client38 CIFS]# gluster vol bitrot smb scrub pause 
Bitrot command failed : Scrub is already paused for volume smb
[root@rhs-client38 CIFS]# gluster vol bitrot smb scrub resume
volume bitrot: success
[root@rhs-client38 CIFS]# gluster vol bitrot smb scrub resume
Bitrot command failed : Scrub is already resumed for volume smb
[root@rhs-client38 CIFS]# gluster vol bitrot vol1 scrub resume
Bitrot command failed : Bitrot is not enabled on volume vol1
Comment 5 errata-xmlrpc 2015-07-29 00:51:52 EDT
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.

https://rhn.redhat.com/errata/RHSA-2015-1495.html

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