Repository navigation
mon/ConfigMonitor: Show localized name in "config dump --format json" output - #52906
Conversation
|
Test Results With Fix: |
|
@rzarzynski @neha-ojha PTAL when you can. |
rzarzynski
left a comment
There was a problem hiding this comment.
Approving for main while being a bit nervous about fallouts / users relying on the buggy behavior. Might be worth a CDM.
@rzarzynski I posted changes pertaining to this PR on the ceph-users mail list (https://www.spinics.net/lists/ceph-users/msg78499.html) and didn't get any response so far. Therefore, I think this change shouldn't cause a major fallout. We can also bring this up in other dev or community meetups to be sure. |
|
@neha-ojha: points out we should document this in release notes. |
|
It's in testing now @rzarzynski ! |
@rzarzynski Sure, I will add to the release notes. |
f4baa09 to
a86a0ab
Compare
@rzarzynski @neha-ojha Added the release note. Please verify. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
… 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]>
a86a0ab to
74aeab9
Compare
|
jenkins test api |
There was a problem hiding this comment.
@rzarzynski I modified the note to include bit more detail. PTAL.
…utput. Signed-off-by: Sridhar Seshasayee <[email protected]>
74aeab9 to
401b30f
Compare
|
jenkins test make check |
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]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows