Bug 2313281 - [rgw][topic]: on an upgraded environment from 7.1 to 8.0, radosgw-admin topic list outputs 'n' topics 'n' number of times [NEEDINFO]
Summary: [rgw][topic]: on an upgraded environment from 7.1 to 8.0, radosgw-admin topic...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 8.0z3
Assignee: Ali Masarwa
QA Contact: sohan singh
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-18 12:36 UTC by Hemanth Sai
Modified: 2025-04-07 15:25 UTC (History)
10 users (show)

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.
Clone Of:
Environment:
Last Closed: 2025-04-07 15:25:50 UTC
Embargoed:
sohsingh: needinfo? (Ali.Masarwa)
sohsingh: needinfo? (Ali.Masarwa)
sohsingh: needinfo? (Ali.Masarwa)
rpollack: needinfo? (Ali.Masarwa)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 68102 0 None None None 2024-09-25 14:31:11 UTC
Red Hat Issue Tracker RHCEPH-9812 0 None None None 2024-09-18 17:26:31 UTC
Red Hat Issue Tracker RHCEPH-9973 0 None None None 2024-10-09 12:55:00 UTC
Red Hat Product Errata RHSA-2025:3635 0 None None None 2025-04-07 15:25:53 UTC

Internal Links: 2355272

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


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