Actions
Bug #58282
closedzero size is reported for lifecycle notifications on versioned buckets
% Done:
0%
Source:
Q/A
Tags:
notifications
Backport:
quincy
Regression:
No
Severity:
3 - minor
Reviewed:
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'}]}
Updated by Yuval Lifshitz over 1 year ago
etag is also missing in the case of a versioned bucket
Updated by Yuval Lifshitz over 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 49466
Updated by Casey Bodley over 1 year ago
- Is duplicate of Bug #58287: rgwlc/notifications: initialize object state before accessing object size for use in notify added
Updated by Casey Bodley over 1 year ago
- Status changed from Fix Under Review to Duplicate
Actions