Bug 2313281

Summary: [rgw][topic]: on an upgraded environment from 7.1 to 8.0, radosgw-admin topic list outputs 'n' topics 'n' number of times
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Hemanth Sai <hmaheswa>
Component: RGWAssignee: Ali Masarwa <Ali.Masarwa>
Status: CLOSED ERRATA QA Contact: sohan singh <sohsingh>
Severity: medium Docs Contact: Rivka Pollack <rpollack>
Priority: unspecified    
Version: 8.0CC: Ali.Masarwa, cbodley, ceph-eng-bugs, cephqe-warriors, mbenjamin, mkasturi, rpollack, sohsingh, tserlin, ylifshit
Target Milestone: ---Keywords: Regression
Target Release: 8.0z3Flags: sohsingh: needinfo? (Ali.Masarwa)
sohsingh: needinfo? (Ali.Masarwa)
sohsingh: needinfo? (Ali.Masarwa)
rpollack: needinfo? (Ali.Masarwa)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.2.0-100.el9cp Doc Type: Bug Fix
Doc Text:
.`radosgw-admin` topics are now listed as expected Previously, notification_v1 topics were generated with an incorrect JSON format and notification_v2 topics were listed redundantly. With this fix, enumeration changes were made and both v1 and v2 topics generate and list as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-07 15:25:50 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 Hemanth Sai 2024-09-18 12:36:33 UTC
Description of problem:
on an upgraded environment from 7.1 to 8.0, radosgw-admin topic list outputs 'n' topics 'n' number of times
i.e., if there are 3 topics, then topic list is displayed 3 times

[ceph: root@ceph-pri-hsm-squid-ms-fqoqnn-node1-installer /]# radosgw-admin topic list
{
    "topics": [
        {
            "topics": [
                {
                    "owner": "bettyk.981",
                    "name": "topic1",
                    "dest": {
                        "push_endpoint": "",
                        "push_endpoint_args": "Version=2010-03-31",
                        "push_endpoint_topic": "topic1",
                        "stored_secret": false,
                        "persistent": false,
                        "persistent_queue": "",
                        "time_to_live": "None",
                        "max_retries": "None",
                        "retry_sleep_duration": "None"
                    },
                    "arn": "arn:aws:sns:shared::topic1",
                    "opaqueData": "",
                    "policy": ""
                },
                {
                    "owner": "bettyk.981",
                    "name": "topic2",
                    "dest": {
                        "push_endpoint": "",
                        "push_endpoint_args": "Version=2010-03-31",
                        "push_endpoint_topic": "topic2",
                        "stored_secret": false,
                        "persistent": false,
                        "persistent_queue": "",
                        "time_to_live": "None",
                        "max_retries": "None",
                        "retry_sleep_duration": "None"
                    },
                    "arn": "arn:aws:sns:shared::topic2",
                    "opaqueData": "",
                    "policy": ""
                }
            ]
        },
        {
            "topics": [
                {
                    "owner": "bettyk.981",
                    "name": "topic1",
                    "dest": {
                        "push_endpoint": "",
                        "push_endpoint_args": "Version=2010-03-31",
                        "push_endpoint_topic": "topic1",
                        "stored_secret": false,
                        "persistent": false,
                        "persistent_queue": "",
                        "time_to_live": "None",
                        "max_retries": "None",
                        "retry_sleep_duration": "None"
                    },
                    "arn": "arn:aws:sns:shared::topic1",
                    "opaqueData": "",
                    "policy": ""
                },
                {
                    "owner": "bettyk.981",
                    "name": "topic2",
                    "dest": {
                        "push_endpoint": "",
                        "push_endpoint_args": "Version=2010-03-31",
                        "push_endpoint_topic": "topic2",
                        "stored_secret": false,
                        "persistent": false,
                        "persistent_queue": "",
                        "time_to_live": "None",
                        "max_retries": "None",
                        "retry_sleep_duration": "None"
                    },
                    "arn": "arn:aws:sns:shared::topic2",
                    "opaqueData": "",
                    "policy": ""
                }
            ]
        }
    ]
}
[ceph: root@ceph-pri-hsm-squid-ms-fqoqnn-node1-installer /]# 


previous to upgrade on 7.1, the topic list output is valid.




Version-Release number of selected component (if applicable):
ceph version 19.1.1-42.el9cp

How reproducible:
always

Steps to Reproduce:
1.deploy rhcs7.1(ceph version 18.2.1-229.el9cp) cluster with rgw daemons
2.create sns topics
3.execute radosgw-admin topic list. the output is valid on 7.1
3.upgrade the cluster to 8.0(ceph version 19.1.1-42.el9cp)
4.execute radosgw-admin topic list again, the topic list is duplicated.

Actual results:
radosgw-admin topic list outputs duplicated data on an upgraded environment from 7.1 to 8.0

Expected results:
expected radosgw-admin topic list output is valid even after upgrade

Additional info:
client node: 10.0.64.60
creds: cephuser/cephuser , root/passwd

Comment 4 Ali Masarwa 2024-10-22 08:17:01 UTC
https://github.com/ceph/ceph/pull/60045

Comment 5 Ali Masarwa 2024-10-22 08:18:28 UTC
(In reply to Ali Masarwa from comment #4)
> https://github.com/ceph/ceph/pull/60045

This is PR includes the fix,
can someone merge to downstream?

Comment 18 errata-xmlrpc 2025-04-07 15:25:50 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 (Important: Red Hat Ceph Storage 8.0 security, bug fix, and enhancement updates), 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-2025:3635