Bug 1369721

Summary: EventApis will not work if compiled using ./configure --disable-glupy
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:19:57 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-24 08:41:07 UTC
Description of problem:
If glupy is disabled, BUILD_PYTHON_SITE_PACKAGES variable will be empty and cliutils will get installed in /gluster/cliutils instead of /usr/local/lib/python2.7/site-packages or /usr/lib/python2.7/site-packages directory. 

glustereventsd fails with following error
ImportError: No module named cliutils

Comment 1 Worker Ant 2016-08-24 09:03:15 UTC
REVIEW: http://review.gluster.org/15305 (packaging/eventsapi: Make Python site-packages variable global) posted (#1) for review on master by Aravinda VK (avishwan)

Comment 2 Worker Ant 2016-08-29 07:28:34 UTC
COMMIT: http://review.gluster.org/15305 committed in master by Aravinda VK (avishwan) 
------
commit f463c4615ba93e2ebe7eb12a2ebc13333ecaa016
Author: Aravinda VK <avishwan>
Date:   Wed Aug 24 14:02:08 2016 +0530

    packaging/eventsapi: Make Python site-packages variable global
    
    Python site-packages path is assigned when glupy is enabled.
    Eventsapi will not work as expected if glupy is disabled using
    ./configure --disable-glupy.
    
    With this patch, all the Python variables are moved out of glupy
    and used inside it.
    
    systemd services will fail if we import gluster.cliutils python library
    which is installed in /usr/local/lib/python.2.7/site-packages or some
    other location. With this patch, Environment variable is added in
    systemd service file.
    
    BUG: 1369721
    Change-Id: I9416240f03889e3bbcb4cd375e27c784fa9ca277
    Signed-off-by: Aravinda VK <avishwan>
    Reviewed-on: http://review.gluster.org/15305
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: Kaleb KEITHLEY <kkeithle>
    Tested-by: Atin Mukherjee <amukherj>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>

Comment 3 Shyamsundar 2017-03-27 18:19:57 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/