Project

General

Profile

Actions

Bug #62379

closed

mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names.

Added by Sridhar Seshasayee 9 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% 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": "" 
  },


Related issues 3 (0 open3 closed)

Copied to RADOS - Backport #63128: reef: mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names.ResolvedSridhar SeshasayeeActions
Copied to RADOS - Backport #63129: quincy: mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names.ResolvedSridhar SeshasayeeActions
Copied to RADOS - Backport #63185: pacific: mon: "config dump" command's output (normal vs json) is not consistent in terms of displaying option names.ResolvedSridhar SeshasayeeActions
Actions #1

Updated by Sridhar Seshasayee 9 months ago

  • Description updated (diff)
Actions #2

Updated by Sridhar Seshasayee 9 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 52906
Actions #3

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": "" 
  },
Actions #4

Updated by Sridhar Seshasayee 8 months ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to quincy, reef
Actions #5

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
Actions #6

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
Actions #7

Updated by Backport Bot 8 months ago

  • Tags set to backport_processed
Actions #8

Updated by Sridhar Seshasayee 7 months ago

  • Backport changed from quincy, reef to quincy, reef, pacific
Actions #9

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
Actions #10

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.)
Actions #11

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
Actions #12

Updated by Sridhar Seshasayee 4 months ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF