Bug 2241325 - [bucket-notification/versioning]: VersionId not present for CurrentVersion ObjectLifecycle:Expiration events
Summary: [bucket-notification/versioning]: VersionId not present for CurrentVersion Ob...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 7.0
Assignee: Matt Benjamin (redhat)
QA Contact: Madhavi Kasturi
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-29 10:23 UTC by Vidushi Mishra
Modified: 2023-12-13 15:24 UTC (History)
6 users (show)

Fixed In Version: ceph-18.2.0-126.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-12-13 15:24:08 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-7591 0 None None None 2023-09-29 10:23:55 UTC
Red Hat Product Errata RHBA-2023:7780 0 None None None 2023-12-13 15:24:10 UTC

Description Vidushi Mishra 2023-09-29 10:23:20 UTC
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:

Comment 19 errata-xmlrpc 2023-12-13 15:24:08 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 (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


Note You need to log in before you can comment on or make changes to this bug.