Project

General

Profile

Bug #15243

rgw: can't remove non-versioned object after enabling versioning on bucket

Added by Yehuda Sadeh over 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
High
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Related issues

Copied to rgw - Backport #15254: hammer: rgw: can't remove non-versioned object after enabling versioning on bucket Resolved

Associated revisions

Revision c6334d43 (diff)
Added by Yehuda Sadeh over 5 years ago

rgw: convert plain object to versioned (with null version) when removing

Fixes #15243

When removing a plain null versioned object (was created prior to bucket versioning
enabled), need to convert the bucket index representation to a versioned one. This
is needed so that all the versioning mechanics play together.

Signed-off-by: Yehuda Sadeh <>

Revision 300c1117 (diff)
Added by Yehuda Sadeh over 5 years ago

rgw: convert plain object to versioned (with null version) when removing

Fixes #15243

When removing a plain null versioned object (was created prior to bucket versioning
enabled), need to convert the bucket index representation to a versioned one. This
is needed so that all the versioning mechanics play together.

Signed-off-by: Yehuda Sadeh <>
(cherry picked from commit c6334d430b17739fed2df2b4481ae395ef6568d9)

Conflicts:
src/rgw/rgw_rados.cc
- hammer is missing get_zone() API from which log_data can be
obtained. Needed to fall back to zone_public_config
structure in bucket_index_unlink_instance() definition.
- olh_tag string parameter added to
bucket_index_unlink_instance() definition.
src/rgw/rgw_rados.h
- olh_tag string parameter added to
bucket_index_unlink_instance() declaration.

History

#1 Updated by Yehuda Sadeh over 5 years ago

  • Assignee set to Orit Wasserman
  • Priority changed from Normal to High

#2 Updated by Yehuda Sadeh over 5 years ago

  • Status changed from New to Pending Backport
  • Backport set to hammer, infernalis

#3 Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #15253: infernalis: rgw: can't remove non-versioned object after enabling versioning on bucket added

#4 Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #15254: hammer: rgw: can't remove non-versioned object after enabling versioning on bucket added

#5 Updated by Robin Johnson over 5 years ago

  • Release set to jewel

#6 Updated by Loïc Dachary about 5 years ago

  • Backport changed from hammer, infernalis to hammer

infernalis is EOL

#7 Updated by Loïc Dachary about 5 years ago

  • Copied to deleted (Backport #15253: infernalis: rgw: can't remove non-versioned object after enabling versioning on bucket)

#8 Updated by Loïc Dachary about 5 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF