Actions
Bug #62379
closedmon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names.
% Done:
0%
Source:
Tags:
backport_processed
Backport:
quincy, reef, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Monitor
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
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 shows the normalized
option names which is not consistent with the "config dump" output.
The output of the command along with variations for pretty printing must
show the same content.
Example:
$ ./bin/ceph config dump | grep server_ mgr advanced mgr/dashboard/x/ssl_server_port 41728 * mgr advanced mgr/prometheus/x/server_port 9283 mgr advanced mgr/restful/x/server_port 42728 * $ ./bin/ceph config dump --format json | jq | grep -A 5 -B 3 server_ }, { "section": "mgr", "name": "mgr/dashboard/ssl_server_port", "value": "41728", "level": "advanced", "can_update_at_runtime": false, "mask": "" }, { "section": "mgr", "name": "mgr/prometheus/server_port", "value": "9283", "level": "advanced", "can_update_at_runtime": true, "mask": "" }, { "section": "mgr", "name": "mgr/restful/server_port", "value": "42728", "level": "advanced", "can_update_at_runtime": false, "mask": "" },
Updated by Sridhar Seshasayee 9 months ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 52906
Updated by Sridhar Seshasayee 9 months ago
Test Results With Fix:
$ ./bin/ceph config dump | grep server_ mgr advanced mgr/dashboard/x/ssl_server_port 41728 * mgr advanced mgr/prometheus/x/server_port 9283 mgr advanced mgr/restful/x/server_port 42728 * $ ./bin/ceph config dump --format json | jq | grep -A 5 -B 3 server_ }, { "section": "mgr", "name": "mgr/dashboard/x/ssl_server_port", "value": "41728", "level": "advanced", "can_update_at_runtime": false, "mask": "" }, { "section": "mgr", "name": "mgr/prometheus/x/server_port", "value": "9283", "level": "advanced", "can_update_at_runtime": true, "mask": "" }, { "section": "mgr", "name": "mgr/restful/x/server_port", "value": "42728", "level": "advanced", "can_update_at_runtime": false, "mask": "" },
Updated by Sridhar Seshasayee 8 months ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to quincy, reef
Updated by Backport Bot 8 months ago
- Copied to Backport #63128: reef: mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names. added
Updated by Backport Bot 8 months ago
- Copied to Backport #63129: quincy: mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names. added
Updated by Sridhar Seshasayee 7 months ago
- Backport changed from quincy, reef to quincy, reef, pacific
Updated by Sridhar Seshasayee 7 months ago
- Related to Backport #63185: pacific: mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names. added
Updated by Sridhar Seshasayee 7 months ago
- Related to deleted (Backport #63185: pacific: mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names.)
Updated by Sridhar Seshasayee 7 months ago
- Copied to Backport #63185: pacific: mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names. added
Updated by Sridhar Seshasayee 4 months ago
- Status changed from Pending Backport to Resolved
Actions