Actions
Bug #49859
openSnapshot schedules are not deleted after enabling/disabling snap module
% Done:
0%
Source:
Development
Tags:
Backport:
pacific,octopus
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
Assuming the following:
[root@rook-ceph-tools-78cdfd976c-xltx5 /]# ceph fs snap-schedule list / fs=myfs2 format=json {"path": "/", "schedule": ["2d", "4d"], "retention": [{}, {}]}
Then removing the snapshot schedules:
[root@rook-ceph-tools-78cdfd976c-xltx5 /]# ceph fs snap-schedule remove / 4d fs=myfs2 Schedule removed for path / [root@rook-ceph-tools-78cdfd976c-xltx5 /]# ceph fs snap-schedule remove / 2d 2014-01-09T21:48:00 fs=myfs2 Schedule removed for path / [root@rook-ceph-tools-78cdfd976c-xltx5 /]# ceph fs snap-schedule list / fs=myfs2 format=json {}
The status is also empty:
[root@rook-ceph-tools-78cdfd976c-xltx5 /]# ceph fs snap-schedule status / fs=myfs2 format=json []
Now reloading the module:
[root@rook-ceph-tools-78cdfd976c-xltx5 /]# ceph mgr module disable snap_schedule && ceph mgr module enable snap_schedule --force
And here they are again:
[root@rook-ceph-tools-78cdfd976c-xltx5 /]# ceph fs snap-schedule status / fs=myfs2 format=json [{"fs": "myfs2", "subvol": null, "path": "/", "rel_path": "/", "schedule": "2d", "retention": {}, "start": "2014-01-09T21:48:00", "created": "2021-03-17T09:32:03", "first": null, "last": null, "last_pruned": null, "created_count": 0, "pruned_count": 0, "active": true},{"fs": "myfs2", "subvol": null, "path": "/", "rel_path": "/", "schedule": "4d", "retention": {}, "start": "2021-03-17T00:00:00", "created": "2021-03-17T09:30:57", "first": null, "last": null, "last_pruned": null, "created_count": 0, "pruned_count": 0, "active": true}] [root@rook-ceph-tools-78cdfd976c-xltx5 /]# [root@rook-ceph-tools-78cdfd976c-xltx5 /]# [root@rook-ceph-tools-78cdfd976c-xltx5 /]# ceph fs snap-schedule list / fs=myfs2 format=json {"path": "/", "schedule": ["2d", "4d"], "retention": [{}, {}]}
Updated by Patrick Donnelly about 3 years ago
- Status changed from New to Triaged
- Assignee set to Jan Fajerski
- Target version set to v17.0.0
- Source set to Development
- Backport set to pacific,octopus
Actions