Description of problem: VersionId not present for ObjectLifecycle:Expiration:Current and Noncurrent events. ============ event record sample, where the versionID is empty ================= {"Records":[{"eventVersion":"2.2","eventSource":"ceph:s3","awsRegion":"shared","eventTime":"2023-09-29T08:52:53.883201Z","eventName":"ObjectLifecycle:Expiration:Noncurrent","userIdentity":{"principalId":"rgw lifecycle"},"requestParameters":{"sourceIPAddress":""},"responseElements":{"x-amz-request-id":"0","x-amz-id-2":"8b83-primary-shared"},"s3":{"s3SchemaVersion":"1.0","configurationId":"primary-notif-1","bucket":{"name":"primary-bucket-1","ownerIdentity":{"principalId":"elizabethc.211"},"arn":"arn:aws:s3:shared::primary-bucket-1","id":"41be7c70-ab2a-4b1f-ad71-d4d40b81f233.34833.12"},"object":{"key":"versioned-object1","size":4096,"eTag":"620f0b67a91f7f74151bc5be745b7110","versionId":"","sequencer":"65901665CED3A434","metadata":[{"key":"x-amz-meta-s3cmd-attrs","val":"atime:1695976781/ctime:1695976762/gid:0/gname:root/md5:620f0b67a91f7f74151bc5be745b7110/mode:33188/mtime:1695976762/uid:0/uname:root"}],"tags":[]}},"eventId":"1695977573.883217.620f0b67a91f7f74151bc5be745b7110","opaqueData":""}]} {"Records":[{"eventVersion":"2.2","eventSource":"ceph:s3","awsRegion":"shared","eventTime":"2023-09-29T08:52:53.894264Z","eventName":"ObjectLifecycle:Expiration:Noncurrent","userIdentity":{"principalId":"rgw lifecycle"},"requestParameters":{"sourceIPAddress":""},"responseElements":{"x-amz-request-id":"0","x-amz-id-2":"8b83-primary-shared"},"s3":{"s3SchemaVersion":"1.0","configurationId":"primary-notif-1","bucket":{"name":"primary-bucket-1","ownerIdentity":{"principalId":"elizabethc.211"},"arn":"arn:aws:s3:shared::primary-bucket-1","id":"41be7c70-ab2a-4b1f-ad71-d4d40b81f233.34833.12"},"object":{"key":"versioned-object1","size":4096,"eTag":"620f0b67a91f7f74151bc5be745b7110","versionId":"","sequencer":"65901665F8794D35","metadata":[{"key":"x-amz-meta-s3cmd-attrs","val":"atime:1695976781/ctime:1695976762/gid:0/gname:root/md5:620f0b67a91f7f74151bc5be745b7110/mode:33188/mtime:1695976762/uid:0/uname:root"}],"tags":[]}},"eventId":"1695977573.894269.620f0b67a91f7f74151bc5be745b7110","opaqueData":""}]} Version-Release number of selected component (if applicable): ceph version 18.2.0-57.el9cp How reproducible: 2/2 Steps to Reproduce: 1. create a bucket 'primary-bucket-1', enable versioning on the bucket, and apply bucket notification to get notifications for below events. [root@ceph-pri-mp-9gkl5x-node5 s3_swift]# aws --endpoint-url http://ceph-pri-mp-9gkl5x-node5:80 s3api get-bucket-notification-configuration --bucket primary-bucket-1 { "TopicConfigurations": [ { "Id": "primary-notif-1", "TopicArn": "arn:aws:sns:shared::primary-topic-2", "Events": [ "s3:ObjectSynced:*", "s3:ObjectCreated:*", "s3:ObjectRemoved:*", "s3:ObjectLifecycle:Expiration:*", "s3:ObjectLifecycle:Transition:*" ] } ] } 2. upload a few object versions with the key 'versioned-object1'. 3. Apply LC policy to delete the non-current versions of the object 'versioned-object1' 4. Observe the Notifications for the ObjectLifecycle:Expiration:* events, we observe the versionID not displayed. Actual results: VersionID of the expired object is not displayed in the notification when deleting versioned object via LC Expected results: VersionID of the expired object should be displayed in the notification Additional info:
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 (Red Hat Ceph Storage 7.0 Bug Fix 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/RHBA-2023:7780