Bug 1493539

Summary: AFR_SUBVOL_UP and AFR_SUBVOLS_DOWN events not working
Product: [Community] GlusterFS Reporter: Karthik U S <ksubrahm>
Component: eventsapiAssignee: Karthik U S <ksubrahm>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, dnarayan, ravishankar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.13.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1492066 Environment:
Last Closed: 2017-12-08 17:41:21 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: 1491574, 1492066    

Description Karthik U S 2017-09-20 12:37:29 UTC
+++ This bug was initially created as a clone of Bug #1492066 +++

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.

--- Additional comment from Ravishankar N on 2017-09-20 01:54:01 EDT ---

Assigning to Karthik who has agreed to send the fix.

Comment 1 Worker Ant 2017-09-20 13:33:31 UTC
REVIEW: https://review.gluster.org/18329 (cluster/afr: Sending subvol up/down events when subvol comes up or goes down) posted (#1) for review on master by Karthik U S (ksubrahm)

Comment 2 Worker Ant 2017-09-21 05:07:35 UTC
COMMIT: https://review.gluster.org/18329 committed in master by Ravishankar N (ravishankar) 
------
commit 3bbb4fe4b33dc3a3ed068ed2284077f2a4d8265a
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
    
    Change-Id: I6580351b245d5f868e9ddc6a4eb4dd6afa3bb6ec
    BUG: 1493539
    Signed-off-by: karthik-us <ksubrahm>

Comment 3 Shyamsundar 2017-12-08 17:41:21 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.13.0, please open a new bug report.

glusterfs-3.13.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://lists.gluster.org/pipermail/announce/2017-December/000087.html
[2] https://www.gluster.org/pipermail/gluster-users/