Bug 2055173

Summary: [cee/sd][cephFS]Scheduled snapshots are not created after ceph-mgr restart
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Janmejay Singh <jansingh>
Component: CephFSAssignee: Milind Changire <mchangir>
Status: CLOSED ERRATA QA Contact: julpark
Severity: medium Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 5.0CC: akraj, amk, bkunal, ceph-eng-bugs, glaw, hyelloji, julpark, ksachdev, lithomas, mchangir, mhackett, sbaldwin, stockage-dnum, sumr, tserlin, vereddy, vshankar, vumrao
Target Milestone: ---Keywords: Rebase
Target Release: 4.3z1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-16.2.8-2.el8cp Doc Type: Bug Fix
Doc Text:
.Disaster recovery automation and planning resumes after `ceph-mgr` restart Previously, schedules would not start during `ceph-mgr` startup which affected the disaster recovery plans of users who presumed that the snapshot schedule would resume at `ceph-mgr` restart time. With this fix, schedules start on `ceph-mgr` restart and the disaster recovery automation and planning, such as snapshot replication, immediately resumes after `ceph-mgr` is restarted, without the need for manual intervention.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-09 17:37:28 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: 2102272    

Description Janmejay Singh 2022-02-16 12:27:16 UTC
Description of problem:
Scheduled snapshots doesn't create after active mgr restarted.Checking snap-schedule status shows the retention being removed automatically. After adding the retention again snapshot gets created. 

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

How reproducible:

Steps to Reproduce:
1.Enable the snap_schedule module.
2.Create a snap-schedule.
3.Add retention to it.
4:Activate the new schedule.
5:Check status and allow it to create one snapshot.
6:Restart active mgr daemon and check snap_schedule status.
 

Actual results:
- Scheduled snapshot should get created even after active mgr restarted.

Expected results:

- Scheduled snapshot doesn't get created after active mgr restarted.

Comment 2 Venky Shankar 2022-02-17 05:39:39 UTC
Milind,

Assigning this to you (and so is the upstream tracker).

Cheers,
Venky

Comment 19 Venky Shankar 2022-06-08 09:38:00 UTC
(In reply to Milind Changire from comment #18)
> (In reply to Venky Shankar from comment #16)
> > (In reply to Steve Baldwin from comment #9)
> > > Hello Team,
> > > 
> > > We have another customer report this issue - Université de Dijon - Bourgogne
> > > - SFDC case 03213740.
> > > 
> > > This customer is on 5.1 / 16.2.7-98
> > > 
> > > Anything we can do to keep the snapshot schedule from getting removed other
> > > than *not* restarting ceph-mgr?
> > 
> > Milind? The schedules could possibly be activated via CLI.
> 
> The schedule seems to be in "active" state in the database output.
> A "deactivate" followed by "activate" should help restart the schedule.

If the schedule is active, why would it need to be reactivated?

Comment 41 errata-xmlrpc 2022-08-09 17:37:28 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 (Moderate: Red Hat Ceph Storage Security, Bug Fix, and Enhancement Update), 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/RHSA-2022:5997