Project

General

Profile

Actions

Bug #35814

closed

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

Added by joke lee over 5 years ago. Updated over 5 years ago.

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

0%

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

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 2 (0 open2 closed)

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

Updated by Abhishek Lekshmanan over 5 years ago

  • Status changed from New to 7
Actions #2

Updated by Casey Bodley over 5 years ago

  • Status changed from 7 to Pending Backport
Actions #4

Updated by Nathan Cutler over 5 years ago

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

Updated by Nathan Cutler over 5 years ago

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

Updated by Nathan Cutler over 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF