Skip to content

quincy: mon/ConfigMonitor: Show localized name in "config dump --format json" output - #53886

Merged
rzarzynski merged 2 commits into
ceph:quincyfrom
sseshasa:wip-63129-quincy
Jan 8, 2024
Merged

rzarzynski merged 2 commits into
ceph:quincyfrom
sseshasa:wip-63129-quincy

Conversation

@sseshasa

@sseshasa sseshasa commented Oct 9, 2023

Copy link
Copy Markdown
Contributor

… output

The "ceph config dump" command without the json formatted output shows
the localized option names and their values. An example of a normalized
vs localized option is shown below:

Normalized: mgr/dashboard/ssl_server_port (maintaned within Option struct)
Localized: mgr/dashboard/x/ssl_server_port (maintained in mon store)

But the "ceph config dump --format json*" output showed the normalized
option names which was not consistent with the "config dump" output.
The output of the command along with variations for pretty printing must
show the same content.

This commit introduces a new member within the ConfigMap's MaskedOption
struct called "localized_name". This is initialized to the localized name
as part of ConfigMonitor::load_config() method.

The MaskedOption::dump() used for the json formatting is modified to
display the localized_name instead of the normalized name.

Fixes: https://tracker.ceph.com/issues/62379
Signed-off-by: Sridhar Seshasayee <[email protected]>
(cherry picked from commit 3821722)
@sseshasa
sseshasa requested a review from a team as a code owner October 9, 2023 05:25
@sseshasa sseshasa added this to the quincy milestone Oct 9, 2023
@sseshasa sseshasa added the core label Oct 9, 2023
…utput.

Signed-off-by: Sridhar Seshasayee <[email protected]>
(cherry picked from commit 401b30f)

Conflicts:
    PendingReleaseNotes
- Remove unrelated release note related to Cephfs
- Move related release note under ">=17.2.7" section
@sseshasa

Copy link
Copy Markdown
Contributor Author

@rzarzynski Can you please review this backport?

@sseshasa
sseshasa removed the request for review from a team November 17, 2023 05:37
@rzarzynski
rzarzynski merged commit c9a05aa into ceph:quincy Jan 8, 2024
@idryomov idryomov mentioned this pull request Nov 25, 2024
4 of 14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants