]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: Add force-remove-snap mon command
authorMatan Breizman <mbreizma@redhat.com>
Sun, 19 May 2024 13:30:50 +0000 (13:30 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 22 Aug 2024 08:48:40 +0000 (08:48 +0000)
commit2665d243f2cd543e74f670ad32aea23bf63d906c
tree634e91d7461d9c4ccb7652eb25dbc1440c79a708
parentc451dbc97eea6ac9505d278b7601e62d9b22b67a
mon/OSDMonitor: Add force-remove-snap mon command

```
     *  Forces removal of snapshots in the range of
     *  [lower_snapid_bound, upper_snapid_bound) on pool <pool>
     *  in order to cause OSDs to re-trim them.
     *  The command has two mutually exclusive variants:
     *  * Default: All the snapids in the given range which are not
     *    marked as purged in the Monitor will be removed. Mostly useful
     *    for cases in which the snapid is leaked in the client side.
     *    See: https://tracker.ceph.com/issues/64646
```

Fixes: https://tracker.ceph.com/issues/66122
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 6855b049fb38bdb5b15bc1429a7c2e23daccd5ca)
src/mon/MonCommands.h
src/mon/OSDMonitor.cc