Project

General

Profile

Actions

Feature #66164

open

tool to clean up orphaned bucket index entries

Added by Johannes Liebl 26 days ago. Updated 3 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Source:
Community (user)
Tags:
low-hanging-fruit
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

We came across an issue where an Object won't get deleted.
Our users made us aware of an object that can get listed, but not downloaded or info pulled through S3 and also won't delete.
Every deletion will be responded with an 204 but the OMAP entry on the Bucket index object will not be cleaned up so the object stays listable.
Steps to reproduce:
> create object using S3
> delete the rados object associated to the S3 object
-> try and delete the Object using S3

My best guess as to how this orphan happend is some kind of hiccup or race condition which I can't debug anymore since it happend a while ago.
I would expect a subsequent delete request to at least clean up the OMAP entry even if the rados object is gone.


Related issues 1 (1 open0 closed)

Related to rgw - Bug #63935: Bucket index for object remaining after a DELETENew

Actions
Actions #1

Updated by Casey Bodley 17 days ago

i don't think there's any tooling to repair this. we might consider adding an extra option to radosgw-admin object rm so it would delete from the index even if the head object is gone, but implementing that is not trivial

Actions #2

Updated by Johannes Liebl 16 days ago

Having a force or similar option in radosgw-admin would be helpful. The main thing that is bothering me is that such "Failed" delete operations get responded with 204 which seems wrong if nothing happens. In my opinion it would be the easiest to just delete the index even if the backing object is gone upon a delete request since a User wants the object gone anyways.

Actions #3

Updated by Casey Bodley 3 days ago

  • Tracker changed from Bug to Feature
  • Subject changed from RGW orphan omap entry won't get cleaned up to tool to clean up orphaned bucket index entries
  • Tags set to low-hanging-fruit
  • Regression deleted (No)
  • Severity deleted (2 - major)
Actions #4

Updated by Casey Bodley 3 days ago

  • Related to Bug #63935: Bucket index for object remaining after a DELETE added
Actions

Also available in: Atom PDF