Bug #22872
closed"rbd trash purge --threshold" should support data pool
0%
Description
Currently only the base pool is used for calculating usage.
Updated by Rishabh Dave about 6 years ago
I look forward to try fixing this bug? Can I get a recipe to reproduce the bug?
Updated by Jason Dillaman about 6 years ago
Create and fill images that utilize a data pool (i.e. rbd create --size 10G --data-pool=datapool rbd/image). If you move those images to the trash and attempt to delete them using a purge threshold, only the "rbd" pool utilization will be checked instead of the "datapool" pool.
Updated by Rishabh Dave about 6 years ago
Well, what's the difference between the base pool and the data pool? I did couldn't find anything that would tell me the difference between these in docs, source code and web. Is it, somehow, related to tiering?
And, ideally it should check for both of them or either (depending on the user/situation)?
Updated by Jason Dillaman about 6 years ago
It's related to where the image data is stored -- which would be the bulk storage usage source for a trashed image.
Updated by Mahati Chamarthy about 6 years ago
Does it mean support an option like:
rbd trash purge <pool-name> --threshold '<x>' --data-pool=<data-pool-name>
..and it looks for pool utilization in <data-pool-name> as that would be the source for trashed images?
Updated by Jason Dillaman about 6 years ago
@Mahati: I would think it should just be implicit. It could loop through all the trashed images whose deferment end time is in the past and compute a set of (data) pools in-use by the images. For each pool in the set, delete trashed images in that (data) pool until that pool's threshold is met.
Updated by Jason Dillaman almost 6 years ago
- Status changed from New to Fix Under Review
Updated by Jason Dillaman almost 6 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Nathan Cutler almost 6 years ago
- Copied to Backport #24476: mimic: "rbd trash purge --threshold" should support data pool added
Updated by Nathan Cutler almost 6 years ago
- Status changed from Pending Backport to Resolved