Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2282699

Summary: [rgw][notif]: object size 0 seen in event record upon lifecycle transition event
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Hemanth Sai <hmaheswa>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: Hemanth Sai <hmaheswa>
Severity: medium Docs Contact: Rivka Pollack <rpollack>
Priority: unspecified    
Version: 7.1CC: ceph-eng-bugs, cephqe-warriors, mkasturi, rpollack, tserlin
Target Milestone: ---Keywords: Automation
Target Release: 9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-20.1.0-26 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-29 06:48:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hemanth Sai 2024-05-22 19:41:43 UTC
Description of problem:
object size: 0 seen in the event record, for the lifecycle transition events "ObjectLifecycle:Transition:Current" and "ObjectLifecycle:Transition:Noncurrent" 

Version-Release number of selected component (if applicable):
ceph version 18.2.1-188.el9cp

How reproducible:
always

Steps to Reproduce:
1. ceph cluster deployed on 6.0 and rgw configured.
2. kafka broker configured and running
3. create a versioned bucket
4. place this json file https://github.com/ceph/ceph/blob/main/examples/boto3/service-2.sdk-extras.json under /usr/local/lib/python3.9/site-packages/botocore/data/s3/2006-03-01 (for ceph extension)
5. enable bucket notification with kafka-ack-level=broker&persistent=true for event "s3:ObjectLifecycle:Transition:*"
6. set lifecycle policy with transition action of 2 days (rgw_lc_debug_interval is set to 30)
7. upload object and wait until it transition
8. event record has object size : 0

Actual results:
object_size:0 seen in event record

Expected results:
actual object size should be sent

Additional info:
https://docs.google.com/document/d/1Wn3K85Duv-YhucWcsfyea-wYB3-CK9U2E3X2yHjXBf4/edit?usp=sharing

snippet of kafka event record:

{"Records":[{"eventVersion":"2.2","eventSource":"ceph:s3","awsRegion":"default","eventTime":"2024-05-22T16:54:29.825168Z","eventName":"ObjectLifecycle:Transition:Noncurrent","userIdentity":{"principalId":"rgw lifecycle"},"requestParameters":{"sourceIPAddress":""},"responseElements":{"x-amz-request-id":"0","x-amz-id-2":"612e-default-default"},"s3":{"s3SchemaVersion":"1.0","configurationId":"notif1","bucket":{"name":"bkt1","ownerIdentity":{"principalId":"hsm"},"arn":"arn:aws:s3:default::bkt1","id":"68f10ae0-1115-4a92-8385-056e67de70b3.24646.4"},"object":{"key":"obj2","size":0,"eTag":"0b223142030f0d12db211f3e18069fbd-2","versionId":"","sequencer":"45234E664C5E2F31","metadata":[],"tags":[]}},"eventId":"1716396869.825187.0b223142030f0d12db211f3e18069fbd-2","opaqueData":""}]}

Comment 12 errata-xmlrpc 2026-01-29 06:48:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 9.0 Security and Enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2026:1536