Bug 1247056

Summary: [SELinux] [Scheduler]: Unable to create Snapshots on RHEL-7.1 using Scheduler
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Avra Sengupta <asengupt>
Component: snapshotAssignee: Avra Sengupta <asengupt>
Status: CLOSED ERRATA QA Contact: Anil Shah <ashah>
Severity: urgent Docs Contact:
Priority: urgent    
Version: rhgs-3.1CC: amukherj, asengupt, ashah, asrivast, mgrepl, mmalik, pprakash, rhinduja, rhs-bugs, rjoseph, sankarshan, sgraf, smohan
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: RHGS 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8.4-19 Doc Type: Bug Fix
Doc Text:
The boolean cron_system_cronjob_use_shares should be set to 'on' for the snapshot scheduler to function. Workaround: To check if the boolean is set to on: # q --> off To set the boolean to 'on': # setsebool cron_system_cronjob_use_shares on To verify that the boolean is set to 'on': # getsebool -a |grep cron_system_cronjob_use_shares cron_system_cronjob_use_shares --> on
Story Points: ---
Clone Of: 1231647
: 1395643 (view as bug list) Environment:
Last Closed: 2017-09-21 04:25:52 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: 1202842, 1216951, 1223636, 1239269, 1239270, 1395643, 1417147    

Comment 7 Avra Sengupta 2016-02-26 06:29:24 UTC
Removing this from 3.1.3. Will be fixing it later.

Comment 8 Avra Sengupta 2016-11-16 10:48:14 UTC
Cloning this to master, and adding setting of the boolean in the init of snap scheduler, so that this bug can be removed from known issues

Comment 9 Avra Sengupta 2016-11-16 10:54:32 UTC
Patch sent to master : http://review.gluster.org/15857

Comment 12 Atin Mukherjee 2017-03-24 09:52:39 UTC
downstream patch : https://code.engineering.redhat.com/gerrit/#/c/101319/

Comment 14 Anil Shah 2017-05-02 12:00:49 UTC
[root@dhcp43-49 ~]# getsebool -a |grep cron_system_cronjob_use_shares
cron_system_cronjob_use_shares --> off

[root@dhcp43-49 ~]# gluster v set all cluster.enable-shared-storage enable
volume set: success

[root@dhcp43-49 ~]# getsebool -a |grep cron_system_cronjob_use_shares
cron_system_cronjob_use_shares --> off

[root@dhcp43-49 ~]# snap_scheduler.py init
snap_scheduler: Successfully initialised snapshot scheduler for this node
[root@dhcp43-49 ~]# getsebool -a |grep cron_system_cronjob_use_shares
cron_system_cronjob_use_shares --> on



[root@dhcp43-49 ~]gluster snapshot list

Scheduled-job1-vol0_GMT-2017.05.02-11.55.02
Scheduled-job1-vol0_GMT-2017.05.02-11.57.01
Scheduled-job1-vol0_GMT-2017.05.02-11.58.01

bug verified on build glusterfs-3.8.4-24.el7rhgs.x86_64

Comment 17 errata-xmlrpc 2017-09-21 04:25:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2774

Comment 18 errata-xmlrpc 2017-09-21 04:53:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2774

Comment 19 Red Hat Bugzilla 2023-09-14 03:02:36 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days