Project

General

Profile

Feature #12262

Add rados purge option to remove all objects from a pool

Added by David Zafman over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Per discussion on ceph-devel mailing list, in order to remove all objects from a pool we should have a command like this:

rados -p <poolname> purge --yes-i-really-really-mean-it

There is already clean_up_slow() which can easily be adapted to perform this command. Remember to deal with all namespaces.

An evaluation of how bench/cleanup should behave with respect to the namespace options (--all, -N) should be done too.

Associated revisions

Revision 90fdbbfb (diff)
Added by David Zafman over 4 years ago

common, tools, test: Add "rados purge" feature to remove all objects from a pool

This required creating an Object type which is a pair of strings an
object id and object namespace. Functionally, nothing has changed
with regards to the bench and cleanup command semantics. Those
commands still allow operation in the default or a specified namespace.

Fixes: #12262

Signed-off-by: David Zafman <>

History

#1 Updated by David Zafman over 4 years ago

  • Status changed from New to 7

#2 Updated by David Zafman over 4 years ago

  • Affected Versions v9.0.7 added

#3 Updated by David Zafman over 4 years ago

  • Target version set to v9.0.7

#4 Updated by David Zafman over 4 years ago

  • Status changed from 7 to Fix Under Review

The rados --all option already works correctly in that it only applies to the ls command.

I made the usage differently than the feature description:

rados purge <pool-name> --yes-i-really-really-mean-it

This is similar to the pool commands mkpool, cppool and rmpool which don't use the -p option to specify the pool name.

#6 Updated by David Zafman over 4 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF