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.
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)
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)
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)
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)
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>
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/