Bug 1492066

Summary: AFR_SUBVOL_UP and AFR_SUBVOLS_DOWN events not working
Product: [Community] GlusterFS Reporter: Darshan <dnarayan>
Component: eventsapiAssignee: Karthik U S <ksubrahm>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.12CC: amukherj, ravishankar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-glusterfs-3.12.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1492075 1493539 (view as bug list) Environment:
Last Closed: 2017-10-13 12:46:24 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: 1493539    
Bug Blocks: 1491574, 1492075    

Description Darshan 2017-09-15 11:29:01 UTC
Description of problem:
AFR_SUBVOL_UP and AFR_SUBVOLS_DOWN events not working.

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

How reproducible:
Always

Steps to Reproduce:
1. create a 1 X 2 replica volume.
2. kill both the bricks.
3. wait for AFR_SUBVOLS_DOWN event

Actual results:
These 2 events are not being raised

Expected results:
subvol up/down events must be sent whenever a subvolume goes up or down.

Additional info:
Looks these events are not being raised in the code. I see the event names only in events/eventskeygen.py file.

Comment 1 Ravishankar N 2017-09-20 05:54:01 UTC
Assigning to Karthik who has agreed to send the fix.

Comment 2 Worker Ant 2017-09-21 10:32:54 UTC
REVIEW: https://review.gluster.org/18337 (cluster/afr: Sending subvol up/down events when subvol comes up or goes down) posted (#1) for review on release-3.12 by Karthik U S (ksubrahm)

Comment 3 Worker Ant 2017-10-06 06:32:22 UTC
COMMIT: https://review.gluster.org/18337 committed in release-3.12 by jiffin tony Thottan (jthottan) 
------
commit 94faf8c4a1f5a020593ca65f44d68e1ba2f632eb
Author: karthik-us <ksubrahm>
Date:   Wed Sep 20 18:30:21 2017 +0530

    cluster/afr: Sending subvol up/down events when subvol comes up or goes down
    
    > BUG: 1493539
    
    (cherry picked from commit 3bbb4fe4b33dc3a3ed068ed2284077f2a4d8265a)
    
    Change-Id: I6580351b245d5f868e9ddc6a4eb4dd6afa3bb6ec
    BUG: 1492066
    Signed-off-by: karthik-us <ksubrahm>

Comment 4 Jiffin 2017-10-13 12:46:24 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-glusterfs-3.12.2, please open a new bug report.

glusterfs-glusterfs-3.12.2 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://lists.gluster.org/pipermail/gluster-users/2017-October/032684.html
[2] https://www.gluster.org/pipermail/gluster-users/