Actions
Feature #53040
opennotifications: allow empty configuration to delete all notifications on a bucket
% Done:
0%
Source:
Support
Tags:
notifications backport_processed
Backport:
pacific
Description
this would make our code compliant with the way notifications are deleted in AWS.
see: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketNotificationConfiguration.html
Updated by Yuval Lifshitz over 2 years ago
- Assignee changed from Yuval Lifshitz to Kalpesh Pandya
Updated by Yuval Lifshitz over 2 years ago
items:
- refactor the code that delete all notifications of the bucket into a separate function: https://github.com/ceph/ceph/blob/master/src/rgw/rgw_rest_pubsub.cc#L672
- change the XML decode function invoked from here: https://github.com/ceph/ceph/blob/master/src/rgw/rgw_rest_pubsub.cc#L459
to not fail on empty configuration:<NotificationConfiguration> </NotificationConfiguration>
instead you should just keep the list of configurations inside "rgw_pubsub_s3_notifications" empty
that it is an "empty put" - here: https://github.com/ceph/ceph/blob/master/src/rgw/rgw_rest_pubsub.cc#L513
if we see an empty list, we should delete all notifications (the functions we refactored in the 1st step) - please make sure we add tests to teuthology
Updated by Yuval Lifshitz over 2 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 43940
Updated by Yuval Lifshitz over 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot over 2 years ago
- Copied to Backport #53515: pacific: notifications: allow empty configuration to delete all notifications on a bucket added
Updated by Backport Bot over 1 year ago
- Tags changed from notifications to notifications backport_processed
Actions