Actions
Bug #56063
closedSnapshot retention config lost after mgr restart
Status:
Closed
Priority:
Normal
Assignee:
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
Actions