Bug 1223209 - [Snapshot] Do not run scheduler if ovirt scheduler is running
Summary: [Snapshot] Do not run scheduler if ovirt scheduler is running
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: snapshot
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: RHGS 3.1.0
Assignee: Shubhendu Tripathi
QA Contact: Anil Shah
URL:
Whiteboard: Scheduler
Depends On: 1219442 1226120
Blocks: 1202842 1223636
TreeView+ depends on / blocked
 
Reported: 2015-05-20 06:17 UTC by Avra Sengupta
Modified: 2016-09-17 12:57 UTC (History)
10 users (show)

Fixed In Version: glusterfs-3.7.1-1
Doc Type: Bug Fix
Doc Text:
Clone Of: 1219442
Environment:
Last Closed: 2015-07-29 04:44:00 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

Description Avra Sengupta 2015-05-20 06:17:14 UTC
+++ This bug was initially created as a clone of Bug #1219442 +++

Description of problem:
Do not run scheduler if ovirt scheduler is running

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Anand Avati on 2015-05-07 08:54:05 EDT ---

REVIEW: http://review.gluster.org/10641 (snapshot/scheduler: Do not enable scheduler if another scheduler is running) posted (#1) for review on master by Avra Sengupta (asengupt)

--- Additional comment from Anand Avati on 2015-05-12 02:24:45 EDT ---

REVIEW: http://review.gluster.org/10641 (snapshot/scheduler: Do not enable scheduler if another scheduler is running) posted (#3) for review on master by Avra Sengupta (asengupt)

--- Additional comment from Anand Avati on 2015-05-12 03:34:31 EDT ---

REVIEW: http://review.gluster.org/10641 (snapshot/scheduler: Do not enable scheduler if another scheduler is running) posted (#4) for review on master by Avra Sengupta (asengupt)

Comment 3 Avra Sengupta 2015-06-02 10:06:01 UTC
Fixed with https://code.engineering.redhat.com/gerrit/#/c/49697/

Comment 4 Anil Shah 2015-07-02 10:49:13 UTC
Enabled scheduler through ovirt. Tried enabled scheduler through cli then got error 
[root@rhs-client33 ~]# snap_scheduler.py enable
snap_scheduler: Failed to enable snapshot scheduling. Error: Another scheduler is active.

However after disabling scheduler from ovirt , can't enable scheduler from cli.
It doesn't remove entry from file 
cat /var/run/gluster/shared_storage/snaps/current_scheduler

Hence moving bug to assigned state

Comment 6 Shubhendu Tripathi 2015-07-02 11:15:54 UTC
When we create first snapshot schedule from oVirt, the gluster CLI snapshot schedule gets disabled.
But when we delete the last schedule from oVirt, that does not mean that we are not going to create schedules from oVirt in future, so during deletion of snapshot schedule in oVirt we dont go back and enable CLI snapshot schedule.
This is intentional and I feel its correct behaviour.

And once oVirt is there, it is supposed to be used always for any snapshot scheduling. If admin does not want to use oVirt at all (which is not likely), he should manually enable the CLI scheduler from gluster CLI.

Please share your thoughts.

Comment 8 Avra Sengupta 2015-07-06 05:23:20 UTC
I think as agreed upon, once ovirt schedules the first job it takes onus of the entire scheduling till it is present or running on the system. which means even if there isn't a snap schdeuled in the system in the future, while ovirt is running, the CLI scheduler should not be allowed to be enabled, and all snapshots will be scheduled through ovirt

Comment 9 Anil Shah 2015-07-06 12:24:08 UTC
[root@rhs-client33 snaps]# cat current_scheduler 
ovirt


[root@rhs-client33 snaps]# snap_scheduler.py enable
snap_scheduler: Failed to enable snapshot scheduling. Error: Another scheduler is active.

Bug verified on build glusterfs-3.7.1-7.el6rhs.x86_64.

Comment 10 errata-xmlrpc 2015-07-29 04:44:00 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://rhn.redhat.com/errata/RHSA-2015-1495.html


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