Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple events support are not working in the bucket.json/notification.json then it fails to send the event in the array #8652

Open
ramya-c3 opened this issue Jan 6, 2025 · 0 comments
Labels

Comments

@ramya-c3
Copy link

ramya-c3 commented Jan 6, 2025

Environment info

  • NooBaa Version: noobaa-core-5.18.0-20250101.el9.x86_64.rpm
  • Platform: standalone

Actual behavior

  1. If multiple events are added in the bucket.json/notification.json then it fails to send the event in the array
     

s3cp1 s3api put-bucket-notification-configuration --bucket bucket123 --notification-configuration '{

    "TopicConfigurations": [
        {
            "Id": "notify_event",
            "TopicArn": "connection.json",
            "Events": ["s3:ObjectCreated:", "s3:ObjectRemoved:"]
        }
    ]
}'

cat /mnt/cesSharedRoot/ces/s3-config/buckets/bucket123.json

{"_id":"677bad12e9e5423ea60a9d09","name":"bucket123","owner_account":"677bacdcd4a6bc5fb6d30a92","creator":"677bacdcd4a6bc5fb6d30a92","versioning":"DISABLED","creation_date":"2025-01-06T10:14:42.154Z","path":"/mnt/gpfs0/account27/bucket123","should_create_underlying_storage":true,"fs_backend":"GPFS","notifications":[{"id":["notify_event"],"event":["s3:ObjectCreated:","s3:ObjectRemoved:"],"topic":["connection.json"]}]}#
 
 
Log
 

s3cp1 s3 rm s3://bucket123//anaconda-ks.cfg

delete: s3://bucket123//anaconda-ks.cfg

ls -lrt

total 1
-rw-rw-rw-. 1 root root 1248 Jan  6 14:37 test-23_notification_logging.log

cat test_notification_logging.log

{"meta":{"connect":"connection.json","name":"notify_event"},"notif":{"Records":[{"eventVersion":"2.3","eventSource":"ramyamc-24:s3","eventTime":"2025-01-06T13:35:13.714Z","s3":{"s3SchemaVersion":"1.0","object":{"sequencer":"1943bd3a532","key":"/anaconda-ks.cfg"},"bucket":{"name":"bucket123","ownerIdentity":{"principalId":"account27"},"arn":"arn:aws:s3:::bucket123"}},"eventName":"ObjectRemoved:Delete","userIdentity":{"principalId":"account27"},"requestParameters":{"sourceIPAddress":""},"

Expected behavior

  1. It should work for all the events mentioned in the events array

Steps to reproduce

More information - Screenshots / Logs / Other output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant