Bug 2017389 - [RGW] Empty bucket "NotificationConfiguration to remove existing notifications from bucket not working as expected
Summary: [RGW] Empty bucket "NotificationConfiguration to remove existing notification...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 5.2
Assignee: Yuval Lifshitz
QA Contact: Madhavi Kasturi
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2102272
TreeView+ depends on / blocked
 
Reported: 2021-10-26 12:21 UTC by Avi Avraham
Modified: 2024-12-20 21:29 UTC (History)
11 users (show)

Fixed In Version: ceph-16.2.8-22.el8cp
Doc Type: Bug Fix
Doc Text:
.Ceph Object Gateway deletes all notification topics when an empty list of topics is provided Previously, in Ceph Object Gateway, notification topics were deleted accurately by name, but would not follow AWS behaviour to delete all topics when given an empty topic name, causing a few customer bucket notification workflows to be unusable with Ceph Object Gateway. With this fix, explicit handling for empty topic lists has changed and Ceph Object Gateway deletes all the notification topics when an empty list of topics is provided.
Clone Of:
Environment:
Last Closed: 2022-08-09 17:36:41 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-2139 0 None None None 2021-10-31 06:48:16 UTC
Red Hat Product Errata RHSA-2022:5997 0 None None None 2022-08-09 17:37:11 UTC

Description Avi Avraham 2021-10-26 12:21:43 UTC
Description of problem:
Removing bucket notification by sending an empty "NotificationConfiguration" request returns an error. 

Version-Release number of selected component (if applicable):
RHCS 4.2 

How reproducible:


Steps to Reproduce:
1. Create a bucket 
2. configure a bucket notification 
3. remove the configuration you just created by sending a request. <NotificationConfiguration>
</NotificationConfiguration>

Actual results:
activity failing with the following error in the RGW log 
s3:pubsub_notification_create_s3 completing
s3:pubsub_notification_create_s3 op status=-2029
s3:pubsub_notification_create_s3 http status=400
req done req=0x7fb402120660 op status=-2029 http_status=400 latency=0.011s ======
beast: 0x7fb402120660: 192.168.42.1 - sds [21/Oct/2021:21:54:06.101 +0000] "PUT /rabbitmq-notifications-sds?notification HTTP/1.1" 400 253 - "Boto3/1.15.15 Python/3.6.8 Linux/4.18.0-305.19.1.el8_4.x86_64 Botocore/1.18.15" - latency=0.011s
failed to read header: end of stream
Expected results:
RGW successfully delete the notification to the relevant bucket

Additional info:
A reference to the relevant API request in AWS documentation
https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketNotificationConfiguration.html

Comment 17 errata-xmlrpc 2022-08-09 17:36:41 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 (Moderate: Red Hat Ceph Storage Security, Bug Fix, and Enhancement 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/RHSA-2022:5997


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