Snapshot retention config lost after mgr restart
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