Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1933677

Summary: notifications: setting "persistent=false" creates a persistent topic
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Yuval Lifshitz <ylifshit>
Component: RGWAssignee: Yuval Lifshitz <ylifshit>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2CC: cbodley, ceph-eng-bugs, gsitlani, kbader, mbenjamin, mkasturi, sweil, tserlin
Target Milestone: ---   
Target Release: 5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.0-95.el8cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 08:28:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yuval Lifshitz 2021-03-01 12:29:31 UTC
Description of problem:
setting "persistent=false" creates a persistent topic

Version-Release number of selected component (if applicable):
ceph version 14.2.11-124.el8cp (28a642a0bcdc25cc871fe809eca67bdcb16cd10a) nautilus (stable)

Steps to Reproduce:
aws --endpoint-url http://localhost:8000 sns create-topic --name=cowtopic --attributes='{"push-endpoint": "kafka://10.8.130.218:9092", "persistent": "false"}'

Actual results:
topic "cowtopic" is persistent

Expected results:
topic "cowtopic" is not persistent

Additional info:
when "persistent" is ommitted, a non-persistent topic is created:
aws --endpoint-url http://localhost:8000 sns create-topic --name=cowtopic --attributes='{"push-endpoint": "kafka://10.8.130.218:9092"}'

Comment 1 RHEL Program Management 2021-03-01 12:29:35 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 2 Yuval Lifshitz 2021-03-09 13:52:00 UTC
this was fixed by the following commit:

commit 4864ddb958940a2f6a4f9598630cd553f1eea4b9
Author: Yuval Lifshitz <ylifshit>
Date:   Tue Mar 2 13:41:08 2021 +0200

    rgw/notification: fixing the "persistent=false" flag
    
    when setting "persistent=false" a non persistent
    topic should be created
    
    Fixes: https://tracker.ceph.com/issues/49552
    
    Signed-off-by: Yuval Lifshitz <ylifshit>
    (cherry picked from commit 9975472244ad054cb48c283a48ba6156e26dddde)
    
    above commit was cherry picked from: https://github.com/yuvalif/ceph.git

Comment 3 Yuval Lifshitz 2021-07-04 13:32:01 UTC
merged to ceph-5.0-rhel-patches:

commit 3b7db90bd6580daee8ac8bfbde30364dbfcdeec5
Author: Yuval Lifshitz <ylifshit>
Date:   Tue Mar 2 13:41:08 2021 +0200

    rgw/notification: fixing the "persistent=false" flag
    
    when setting "persistent=false" a non persistent
    topic should be created
    
    Fixes: https://tracker.ceph.com/issues/49552
    
    Signed-off-by: Yuval Lifshitz <ylifshit>
    (cherry picked from commit 9975472244ad054cb48c283a48ba6156e26dddde)
    
    Resolves: rhbz#1933677

Comment 10 errata-xmlrpc 2021-08-30 08:28:49 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 5.0 bug fix and enhancement), 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-2021:3294