Bug 1361170

Summary: [Bitrot - RFE]: Bitrot Events
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Kotresh HR <khiremat>
Component: bitrotAssignee: Kotresh HR <khiremat>
Status: CLOSED ERRATA QA Contact: Sweta Anandpara <sanandpa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: amukherj, rcyriac, rhinduja, rhs-bugs, sanandpa
Target Milestone: ---Keywords: FutureFeature
Target Release: RHGS 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: USM-Gluster integration
Fixed In Version: glusterfs-3.8.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1367815 (view as bug list) Environment:
Last Closed: 2017-03-23 05:43:10 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: 1351503, 1367815    

Description Kotresh HR 2016-07-28 12:32:51 UTC
Description of problem:

This RFE is to track the changes required in the bitrot component to generate the events to be consumed by the eventing framework.

Comment 3 Kotresh HR 2016-08-17 14:35:48 UTC
Upstream Patch:

http://review.gluster.org/#/c/15190/

Comment 4 Atin Mukherjee 2016-09-16 10:41:15 UTC
downstream patch https://code.engineering.redhat.com/gerrit/#/c/84792 is merged now.

Comment 7 Sweta Anandpara 2016-10-25 05:57:32 UTC
Below mentioned bitrot events are successfully captured and seen when the corresponding operations are done.
"EVENT_BITROT_ENABLE", "EVENT_BITROT_DISABLE", "EVENT_BITROT_SCRUB_THROTTLE", "EVENT_BITROT_SCRUB_FREQ", "EVENT_BITROT_SCRUB_OPTION", "EVENT_BITROT_BAD_FILE".

For the new CLI 'scrub ondmeand', an event is not generated for which BZ 1384311 has been raised. 

Moving this RFE to verified in 3.2


"{u'message': {u'gfid': u'3682625d-6d74-41bf-9f9d-c1d86210de64', u'path': u'/test1', u'brick': u'/bricks/brick0/repthree3'}, u'event': u'BITROT_BAD_FILE', u'ts': 1477286082, u'nodeid': u'1e8967ae-51b2-4c27-907e-a22a83107fd0'}"

"{u'message': {u'name': u'dist'}, u'event': u'BITROT_ENABLE', u'ts': 1476334598, u'nodeid': u'fcfacf2e-57fb-45ba-b1e1-e4ba640a4de5'}"

"{u'message': {u'name': u'dist'}, u'event': u'BITROT_DISABLE', u'ts': 1476336190, u'nodeid': u'fcfacf2e-57fb-45ba-b1e1-e4ba640a4de5'}"

"{u'message': {u'name': u'dist', u'value': u'aggressive'}, u'event': u'BITROT_SCRUB_THROTTLE', u'ts': 1476334757, u'nodeid': u'fcfacf2e-57fb-45ba-b1e1-e4ba640a4de5'}"

"{u'message': {u'name': u'dist', u'value': u'minute'}, u'event': u'BITROT_SCRUB_FREQ', u'ts': 1476334792, u'nodeid': u'fcfacf2e-57fb-45ba-b1e1-e4ba640a4de5'}"

"{u'message': {u'name': u'dist', u'value': u'pause'}, u'event': u'BITROT_SCRUB_OPTION', u'ts': 1476334930, u'nodeid': u'fcfacf2e-57fb-45ba-b1e1-e4ba640a4de5'}"

Comment 9 errata-xmlrpc 2017-03-23 05:43:10 UTC
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-2017-0486.html