Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: require --yes-i-really-mean-it to run radosgw-admin orphans find #22036

Merged
merged 1 commit into from May 21, 2018

Conversation

mattbenjamin
Copy link
Contributor

Incorrect use of orphans find can lead to data loss. Warn users to be
extra cautious.

Fixes: http://tracker.ceph.com/issues/24146

Signed-off-by: Matt Benjamin mbenjamin@redhat.com

Incorrect use of orphans find can lead to data loss. Warn users to be
extra cautious.

Fixes: http://tracker.ceph.com/issues/24146

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
@@ -6362,6 +6362,13 @@ int main(int argc, const char **argv)
}

if (opt_cmd == OPT_ORPHANS_FIND) {
if (!yes_i_really_mean_it) {
cerr << "accidental removal of active objects can not be reversed; "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to mention that this tool just reports the objects, and trusting its output and deleting objects would be irreversible

@mattbenjamin mattbenjamin merged commit aefbe28 into ceph:master May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants