Bug 1502253 - snapshot_scheduler crashes when SELinux is absent on the system
Summary: snapshot_scheduler crashes when SELinux is absent on the system
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: snapshot
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-15 13:24 UTC by Rishabh Dave
Modified: 2017-12-08 17:43 UTC (History)
1 user (show)

Fixed In Version: glusterfs-3.13.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-08 17:43:44 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)
Fix for the bug. (1.20 KB, application/mbox)
2017-10-15 13:24 UTC, Rishabh Dave
no flags Details

Description Rishabh Dave 2017-10-15 13:24:54 UTC
Created attachment 1338844 [details]
Fix for the bug.

Description of problem:
When snapshot_scheduler.py is executed on a system without SELinux, it crashes due to an unhandled OSError exception.

How reproducible:
100%

Steps to Reproduce:
1. Provision a system without SELinux.
2. Get snapshot_scheduler.py running.

Actual results:
snapshot_scheduler.py crashes due to unhandled exception.

Expected results:
snapshot_scheduler should, at least, handle the exception gracefully.

Additional info:
This bug is clone of - https://github.com/gluster/glusterfs/issues/330.

Comment 1 Worker Ant 2017-10-15 13:28:18 UTC
REVIEW: https://review.gluster.org/18526 (snapshot/scheduler: handle the exception when SELinux is absent) posted (#1) for review on master by Rishabh Dave (rishabhddave)

Comment 2 Worker Ant 2017-10-17 16:57:52 UTC
REVIEW: https://review.gluster.org/18526 (snapshot/scheduler: handle the exception when SELinux is absent) posted (#2) for review on master by Rishabh Dave (rishabhddave)

Comment 3 Worker Ant 2017-10-23 09:47:08 UTC
REVIEW: https://review.gluster.org/18526 (snapshot/scheduler: handle the exception when SELinux is absent) posted (#3) for review on master by Rishabh Dave (rishabhddave)

Comment 4 Worker Ant 2017-10-23 14:55:47 UTC
REVIEW: https://review.gluster.org/18526 (snapshot/scheduler: handle the exception when SELinux is absent) posted (#4) for review on master by Rishabh Dave (rishabhddave)

Comment 5 Worker Ant 2017-10-31 07:55:03 UTC
COMMIT: https://review.gluster.org/18526 committed in master by  

------------- snapshot/scheduler: handle the exception when SELinux is absent

When SELinux is absent on an given system, snapshot_scheduler.py raises
an exception; handle it and report it in the log.

Change-Id: I21bc179e090d34f8061063e6d662521ee5046cce
BUG: 1502253
Signed-off-by: Rishabh Dave <rishabhddave>

Comment 6 Shyamsundar 2017-12-08 17:43:44 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/


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