Project

General

Profile

Bug #35814

rgw: return x-amz-version-id: null when delete obj in versioning suspended bucket

Added by joke lee 3 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/06/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
mimic/luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

in aws

bucket wzyuliyangbucket01 is versioning suspend and we delete the pkbgum.jpg object without VersionId, there will create null version delete marker

DELETE /wzyuliyangbucket01/pkbgum.jpg HTTP/1.1
Host: s3.amazonaws.com
Accept-Encoding: identity
Date: Tue, 04 Sep 2018 01:36:02 GMT
Content-Length: 0
Authorization: AWS AKIAI62ZIFWLOCODA6RA:74p/nZb+S+18U6G+V7rtXliD0Ao=
User-Agent: Boto3/1.7.54 Python/2.7.5 Linux/3.10.0-327.el7.x86_64 Botocore/1.10.54

HTTP/1.1 204 No Content
x-amz-id-2: bPkiiVYz9edjyrIp+GeX514oQXLVMQ8WpgZdJkxDVXeeMZz9fH8pIWrFUxVtMB/+HrxLbraLQ1E=
x-amz-request-id: F9A0A725013FE6E3
Date: Tue, 04 Sep 2018 01:36:18 GMT
x-amz-version-id: null    <===create null version delete marker
x-amz-delete-marker: true
Server: AmazonS3

but in ceph rgw current

DELETE /test1/pkbgum.jpg HTTP/1.1
Host: 192.168.153.177
Accept-Encoding: identity
Date: Tue, 04 Sep 2018 01:33:38 GMT
Content-Length: 0
Authorization: AWS yly:F64fDhEZwHResd6XewYycNf1Jws=
User-Agent: Boto3/1.7.54 Python/2.7.5 Linux/3.10.0-327.el7.x86_64 Botocore/1.10.54

HTTP/1.1 204 No Content
x-amz-delete-marker: true   <=== yes create delete mark  but  no x-amz-version-id
x-amz-request-id: tx000000000000000000045-005b8de0f2-5e25-default
Date: Tue, 04 Sep 2018 01:33:38 GMT

https://github.com/ceph/ceph/pull/23927 fix this


Related issues

Copied to rgw - Backport #36141: luminous: rgw: return x-amz-version-id: null when delete obj in versioning suspended bucket Resolved
Copied to rgw - Backport #36142: mimic: rgw: return x-amz-version-id: null when delete obj in versioning suspended bucket Resolved

History

#1 Updated by Abhishek Lekshmanan 3 months ago

  • Status changed from New to Testing

#2 Updated by Casey Bodley 3 months ago

  • Status changed from Testing to Pending Backport

#4 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #36141: luminous: rgw: return x-amz-version-id: null when delete obj in versioning suspended bucket added

#5 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #36142: mimic: rgw: return x-amz-version-id: null when delete obj in versioning suspended bucket added

#6 Updated by Nathan Cutler about 2 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF