Bug 1362144

Summary: Python library to send Events
Product: [Community] GlusterFS Reporter: Aravinda VK <avishwan>
Component: eventsapiAssignee: Aravinda VK <avishwan>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainline   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.9.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-27 18:18:00 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: 1351589    

Description Aravinda VK 2016-08-01 11:36:54 UTC
Description of problem:
To emit events from Geo-replication or other Python applications running in Storage nodes, Python library is required.

Comment 1 Vijay Bellur 2016-08-01 11:51:41 UTC
REVIEW: http://review.gluster.org/15063 (eventsapi: Python library for gf_event) posted (#1) for review on master by Aravinda VK (avishwan)

Comment 2 Vijay Bellur 2016-08-02 07:14:45 UTC
REVIEW: http://review.gluster.org/15063 (eventsapi: Python library for gf_event) posted (#2) for review on master by Aravinda VK (avishwan)

Comment 3 Vijay Bellur 2016-08-09 07:24:35 UTC
COMMIT: http://review.gluster.org/15063 committed in master by Aravinda VK (avishwan) 
------
commit f5fbf46d82e4ea5325e89459c5ad9f753f1ca66b
Author: Aravinda VK <avishwan>
Date:   Mon Aug 1 17:16:50 2016 +0530

    eventsapi: Python library for gf_event
    
    Python library to emit Events from Geo-replication or any other Python apps
    running in storage nodes.
    
    Add $LIBEXEC/glusterfs/events to Python path to use gf_event
    
    gf_event(event_type, **kwargs)
    
    For example,
    
        sys.path.insert(1, "LIBEXECDIR/glusterfs")
        from events.gf_event import gf_event
        from events import eventtypes
    
        gf_event(eventtypes.GEOREP_FAULTY,
                 volname="gv1",
                 slaveuser="root",
                 slavehost="node1",
                 slavevol="gv2")
    
    Errors will be logged in $LOGDIR/glusterfs/events.log
    
    BUG: 1362144
    Change-Id: I2af2bd77f9961975e4387006b9e99e4543e12b57
    Signed-off-by: Aravinda VK <avishwan>
    Reviewed-on: http://review.gluster.org/15063
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Samikshan Bairagya <samikshan>
    Reviewed-by: Prashanth Pai <ppai>

Comment 4 Shyamsundar 2017-03-27 18:18:00 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.9.0, please open a new bug report.

glusterfs-3.9.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/gluster-users/2016-November/029281.html
[2] https://www.gluster.org/pipermail/gluster-users/