Project

General

Profile

Bug #56063

Snapshot retention config lost after mgr restart

Added by Andreas Teuchert 6 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Tags:
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/snap_schedule
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In https://tracker.ceph.com/issues/54052 the issue that scheduled snapshots are not longer created after a mgr restart was fixed. The fix is included in 16.2.8. After updating from 16.2.7 to 16.2.9 I noticed that indeed scheduled snapshots are still created after a mgr restart, however the snapshot retention policy is gone.

My snapshot schedule/retention policy is configured as follows:

# ceph mgr module enable snap_schedule
# ceph fs snap-schedule add /projects 1h
Schedule set for path /projects
# ceph fs snap-schedule retention add /projects 24h7d4w3m
Retention added to path /projects
# ceph fs snap-schedule list /projects
/projects 1h 24h7d4w3m

After the update and the corresponding mgr restart the renention policy is gone and snapshots are no longer pruned based on the policy:

# ceph fs snap-schedule list /projects
/projects 1h 

History

#1 Updated by Venky Shankar 6 months ago

  • Category set to Correctness/Safety
  • Status changed from New to Triaged
  • Assignee set to Milind Changire
  • Target version set to v18.0.0
  • Backport set to quincy, pacific

Milind, please take a look.

#2 Updated by Andreas Teuchert 5 months ago

After updating to 17.2.1 I'm not observing the issue anymore. Now, after failing over the mgr, the retention policy is still there.

#3 Updated by Milind Changire 3 months ago

  • Status changed from Triaged to Closed

Closing after confirmation from Andreas.

#4 Updated by Sebastian Mazza 3 months ago

I can still reproduce this error in v16.2.9.

Also available in: Atom PDF