Bug 1650017 - glustereventsd ImportError: attempted relative import with no known parent package
Summary: glustereventsd ImportError: attempted relative import with no known parent pa...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: eventsapi
Version: 5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Aravinda VK
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-15 06:42 UTC by mathieu.gallissot
Modified: 2019-06-17 05:03 UTC (History)
6 users (show)

Fixed In Version: glusterfs-7.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-17 05:03:12 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description mathieu.gallissot 2018-11-15 06:42:09 UTC
Description of problem:

After a fresh installation of gluster from the official repository, I'm anable to peer any probes. Checking the services, I have an error while starting glustereventsd using systemd with the following trace

nov. 15 07:31:12 hel glustereventsd[2832]: Traceback (most recent call last):
nov. 15 07:31:12 hel glustereventsd[2832]:   File "/usr/sbin/glustereventsd", line 24, in <module>
nov. 15 07:31:12 hel glustereventsd[2832]:     import handlers
nov. 15 07:31:12 hel glustereventsd[2832]:   File "/usr/lib/x86_64-linux-gnu/glusterfs/events/handlers.py", line 12, in <module>
nov. 15 07:31:12 hel glustereventsd[2832]:     import utils
nov. 15 07:31:12 hel glustereventsd[2832]:   File "/usr/lib/x86_64-linux-gnu/glusterfs/events/utils.py", line 29, in <module>
nov. 15 07:31:12 hel glustereventsd[2832]:     from .eventsapiconf import (LOG_FILE,
nov. 15 07:31:12 hel glustereventsd[2832]: ImportError: attempted relative import with no known parent package

Version-Release number of selected component (if applicable):
glusterd --version
glusterfs 5.0

Comment 1 Mrten 2018-12-04 17:10:54 UTC
same with 5.1, ubuntu package here

Comment 2 Mrten 2018-12-04 17:26:06 UTC
see bug 1649054 for patch

Comment 3 Aravinda VK 2019-02-21 06:25:48 UTC
Sent Patch upstream: https://review.gluster.org/#/c/glusterfs/+/22247

Comment 4 Amar Tumballi 2019-06-17 05:03:12 UTC
The above patch is merged now. Would be available in glusterfs-7.0


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