Project

General

Profile

Actions

Bug #58282

closed

zero size is reported for lifecycle notifications on versioned buckets

Added by Yuval Lifshitz over 1 year ago. Updated over 1 year ago.

Status:
Duplicate
Priority:
Normal
Target version:
-
% Done:

0%

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

Description

following is the record when bucket is versioned:

{'Records': [{'eventVersion': '2.2', 'eventSource': 'ceph:s3', 'awsRegion': 'default', 'eventTime': '2022-12-15T15:26:38.770971Z', 'eventName': 'ObjectLifecycle:Expiration:Current', 'userIdentity': {'principalId': 'rgw lifecycle'}, 'requestParameters': {'sourceIPAddress': ''}, 'responseElements': {'x-amz-request-id': '0', 'x-amz-id-2': '103f-default-default'}, 's3': {'s3SchemaVersion': '1.0', 'configurationId': 'bqrnae-1_notif', 'bucket': {'name': 'bqrnae-1', 'ownerIdentity': {'principalId': 'testid'}, 'arn': 'arn:aws:s3:default::bqrnae-1', 'id': '2ccdb00b-b2c4-4fc9-950a-9428b831d4b4.4147.2'}, 'object': {'key': 'ooo4', 'size': 0, 'eTag': '', 'versionId': '', 'sequencer': 'AE3C9B63F026F42D', 'metadata': [], 'tags': []}}, 'eventId': '1671117998.770975.', 'opaqueData': 'http://1.2.3.4:8888'}]}

while this is when the bucket is not versioned:

{'Records': [{'eventVersion': '2.2', 'eventSource': 'ceph:s3', 'awsRegion': 'default', 'eventTime': '2022-12-15T15:24:53.494362Z', 'eventName': 'ObjectLifecycle:Expiration:Current', 'userIdentity': {'principalId': 'rgw lifecycle'}, 'requestParameters': {'sourceIPAddress': ''}, 'responseElements': {'x-amz-request-id': '0', 'x-amz-id-2': '1038-default-default'}, 's3': {'s3SchemaVersion': '1.0', 'configurationId': 'himkac-1_notif', 'bucket': {'name': 'himkac-1', 'ownerIdentity': {'principalId': 'testid'}, 'arn': 'arn:aws:s3:default::himkac-1', 'id': '2ccdb00b-b2c4-4fc9-950a-9428b831d4b4.4147.1'}, 'object': {'key': 'ooo3', 'size': 3, 'eTag': '37b51d194a7513e45b56f6524f2d51f2', 'versionId': '', 'sequencer': '453C9B633D7B771D', 'metadata': [], 'tags': []}}, 'eventId': '1671117893.494369.37b51d194a7513e45b56f6524f2d51f2', 'opaqueData': 'http://1.2.3.4:8888'}]}


Related issues 1 (1 open0 closed)

Is duplicate of rgw - Bug #58287: rgwlc/notifications: initialize object state before accessing object size for use in notifyPending BackportMatt Benjamin

Actions
Actions

Also available in: Atom PDF