Bug 1477311 - Restrict --inconsistent-index flag from radosgw-admin bucket rm command because it can cause corrupted bucket index
Restrict --inconsistent-index flag from radosgw-admin bucket rm command becau...
Status: VERIFIED
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: RGW (Show other bugs)
2.3
x86_64 Linux
medium Severity medium
: rc
: 3.0
Assigned To: Orit Wasserman
Ramakrishnan Periyasamy
Bara Ancincova
:
: 1464554 (view as bug list)
Depends On:
Blocks: 1494421 1437916
  Show dependency treegraph
 
Reported: 2017-08-01 14:20 EDT by Vikhyat Umrao
Modified: 2017-11-15 19:51 EST (History)
8 users (show)

See Also:
Fixed In Version: RHEL: ceph-12.2.1-1.el7cp Ubuntu: ceph_12.2.1-2redhat1xenial
Doc Type: Bug Fix
Doc Text:
.The `--inconsistent-index` option has been restricted Using the `--inconsistent-index` option with the `radosgw-admin bucket rm` command could cause corruption of the bucket index if the command failed or was stopped. With this update, usage of `--inconsistent-index` requires a confirmation from users (the `--yes-i-really-mean-it` option), and a warning is printed when attempting to use this option.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Ceph Project Bug Tracker 20777 None None None 2017-08-30 16:04 EDT

  None (edit)
Description Vikhyat Umrao 2017-08-01 14:20:32 EDT
Description of problem:
Remove --inconsistent-index flag from radosgw-admin bucket rm command because it can cause corrupted bucket index

For more information please check:
https://bugzilla.redhat.com/show_bug.cgi?id=1463969#c8

We have a new feature request: https://bugzilla.redhat.com/show_bug.cgi?id=1475859([RFE] Add parallelism in radosgw-admin bucket rm command for bucket removal) which will help faster deletion and then we do not this flag --inconsistent-index.


Version-Release number of selected component (if applicable):
Red Hat Ceph Storage 2.3
Comment 2 Matt Benjamin (redhat) 2017-08-17 22:30:21 EDT
*** Bug 1464554 has been marked as a duplicate of this bug. ***
Comment 3 Matt Benjamin (redhat) 2017-08-30 14:49:23 EDT
The current plan is to restrict rather than disable --inconsistent-index, PR is here:

https://github.com/ceph/ceph/pull/17185

(assigning to Orit, author of this PR)
Comment 4 Ken Dreyer (Red Hat) 2017-08-30 16:04:32 EDT
Orit would you please cherry-pick this to luminous for Ceph v12.2.1?
Comment 10 Ramakrishnan Periyasamy 2017-10-17 05:29:33 EDT
Moving this bug to Verified state. Command output when tried to purge objects using "--inconsistent-index" param.

[ubuntu@host006 ~]$ sudo radosgw-admin --cluster qetest bucket rm --purge-objects --bypass-gc --inconsistent-index --bucket=test
using --inconsistent_index can corrupt the bucket index 
do you really mean it? (requires --yes-i-really-mean-it)

Note You need to log in before you can comment on or make changes to this bug.