Bug 1369721 - EventApis will not work if compiled using ./configure --disable-glupy
Summary: EventApis will not work if compiled using ./configure --disable-glupy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: eventsapi
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Aravinda VK
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1351589
TreeView+ depends on / blocked
 
Reported: 2016-08-24 08:41 UTC by Aravinda VK
Modified: 2017-03-27 18:19 UTC (History)
0 users

Fixed In Version: glusterfs-3.9.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-27 18:19:57 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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/


Note You need to log in before you can comment on or make changes to this bug.