Actions
Bug #62379
closed
SS
SS
mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names.
Bug #62379:
mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names.
Due date:
% Done:
0%
Source:
Backport:
quincy, reef, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Monitor
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v18.0.0-6410-g35506db4a4b
Released In:
v19.2.0~1536
Upkeep Timestamp:
2025-07-12T03:35:27+00:00
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": ""
},
SS Updated by Sridhar Seshasayee over 3 years ago
- Description updated (diff)
SS Updated by Sridhar Seshasayee over 3 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 52906
SS Updated by Sridhar Seshasayee over 3 years 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": ""
},
SS Updated by Sridhar Seshasayee about 3 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to quincy, reef
UB Updated by Upkeep Bot about 3 years 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
UB Updated by Upkeep Bot about 3 years 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
SS Updated by Sridhar Seshasayee about 3 years ago
- Backport changed from quincy, reef to quincy, reef, pacific
SS Updated by Sridhar Seshasayee about 3 years 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
SS Updated by Sridhar Seshasayee about 3 years 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.)
SS Updated by Sridhar Seshasayee about 3 years 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
SS Updated by Sridhar Seshasayee almost 3 years ago
- Status changed from Pending Backport to Resolved
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to 35506db4a4b1942fca9aae19eb4cbe59212a3916
- Fixed In set to v18.0.0-6410-g35506db4a4b
- Released In set to v19.2.0~1536
- Upkeep Timestamp set to 2025-07-12T03:35:27+00:00
Actions