Don't know how to use S3 notification
Hello, I try to set up s3 http notifications but cant seem to figure it out. I tried with python boto3 like this: bucket_notification = s3.BucketNotification('wiaderko0') response = bucket_notification.put( NotificationConfiguration={ 'TopicConfigurations': [ { 'TopicArn': 'Kuba', 'Events': [ 's3:ObjectCreated:*' ] } ] } ) But get the following error: botocore.exceptions.ClientError: An error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration operation: Unknown I also tried using RGW REST api like with POST like this: http://172.16.97.1:7480/?Action=CreateTopic&Name=test&push-endpoint=http://127.0.0.1:8080 But got error like this: <?xml version="1.0" encoding="UTF-8"?> <Error> <Code>MethodNotAllowed</Code> <RequestId>tx0000000000000000d1e89-005e707912-11e4-default</RequestId> <HostId>11e4-default-default</HostId> </Error> Could any one offer some advice about it. I would appreciate some guide to setting it up as documentation is pretty unclear.
which ceph version are you using? note that topic creation methods got broken in v14.2.8 (working in v14.2.7). Yuval On Tue, Mar 17, 2020 at 9:25 AM <jsobczak@man.poznan.pl> wrote:
Hello, I try to set up s3 http notifications but cant seem to figure it out.
I tried with python boto3 like this:
bucket_notification = s3.BucketNotification('wiaderko0') response = bucket_notification.put( NotificationConfiguration={ 'TopicConfigurations': [ {
'TopicArn': 'Kuba', 'Events': [ 's3:ObjectCreated:*' ]
} ]
} )
But get the following error: botocore.exceptions.ClientError: An error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration operation: Unknown
I also tried using RGW REST api like with POST like this:
http://172.16.97.1:7480/?Action=CreateTopic&Name=test&push-endpoint=http://127.0.0.1:8080
But got error like this:
<?xml version="1.0" encoding="UTF-8"?> <Error> <Code>MethodNotAllowed</Code> <RequestId>tx0000000000000000d1e89-005e707912-11e4-default</RequestId> <HostId>11e4-default-default</HostId> </Error>
Could any one offer some advice about it. I would appreciate some guide to setting it up as documentation is pretty unclear. _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
I am using 13.2.6 Jakub Quoting Yuval Lifshitz <ylifshit@redhat.com>:
which ceph version are you using? note that topic creation methods got broken in v14.2.8 (working in v14.2.7). Yuval
On Tue, Mar 17, 2020 at 9:25 AM <jsobczak@man.poznan.pl> wrote:
Hello, I try to set up s3 http notifications but cant seem to figure it out.
I tried with python boto3 like this:
bucket_notification = s3.BucketNotification('wiaderko0') response = bucket_notification.put( NotificationConfiguration={ 'TopicConfigurations': [ {
'TopicArn': 'Kuba', 'Events': [ 's3:ObjectCreated:*' ]
} ]
} )
But get the following error: botocore.exceptions.ClientError: An error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration operation: Unknown
I also tried using RGW REST api like with POST like this:
http://172.16.97.1:7480/?Action=CreateTopic&Name=test&push-endpoint=http://127.0.0.1:8080
But got error like this:
<?xml version="1.0" encoding="UTF-8"?> <Error> <Code>MethodNotAllowed</Code> <RequestId>tx0000000000000000d1e89-005e707912-11e4-default</RequestId> <HostId>11e4-default-default</HostId> </Error>
Could any one offer some advice about it. I would appreciate some guide to setting it up as documentation is pretty unclear. _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
participants (2)
-
jsobczak@man.poznan.pl
-
Yuval Lifshitz