Project

General

Profile

Bug #21019

"ceph daemon osd.0 get_command_descriptions" needs to have a line break at the end of result

Added by wb song almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
common
Target version:
-
Start date:
08/17/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

I get the following result when I use "ceph daemon osd.0 get_command_descriptions", since get_command_descriptions only for cli to use, I think there should be a line break at the end of result.

root@plana120:/home/ceph-dev/build# ./bin/ceph -v
ceph version 12.1.2-819-g4d7639e (4d7639e857eed49c6e8bb69ab0a1d984ac2a9faa) mimic (dev)
root@plana120:/home/swb/ceph-dev/build# 
root@plana120:/home/ceph-dev/build# ./bin/ceph daemon osd.0 get_command_descriptions
{"cmd000":{"sig":["0"],"help":""},"cmd001":{"sig":["1"],"help":""},"cmd002":{"sig":["2"],"help":""},"cmd003":{"sig":["calc_objectstore_db_histogram"],"help":"Generate key value histogram of kvdb(rocksdb) which used by bluestore"},"cmd004":{"sig":["compact"],"help":"Commpact object store's omap. WARNING: Compaction probably slows your requests"},"cmd005":{"sig":["config","diff"],"help":"dump diff of current config and default config"},"cmd006":{"sig":["config","diff","get",{"name":"var","type":"CephString"}],"help":"dump diff get <field>: dump diff of current and default config setting <field>"},"cmd007":{"sig":["config","get",{"name":"var","type":"CephString"}],"help":"config get <field>: get the config value"},"cmd008":{"sig":["config","help",{"name":"var","req":"false","type":"CephString"}],"help":"get config setting schema and descriptions"},"cmd009":{"sig":["config","set",{"name":"var","type":"CephString"},{"n":"N","name":"val","type":"CephString"}],"help":"config set <field> <val> [<val> ...]: set a config variable"},"cmd010":{"sig":["config","show"],"help":"dump current config settings"},"cmd011":{"sig":["dump_blacklist"],"help":"dump blacklisted clients and times"},"cmd012":{"sig":["dump_blocked_ops",{"n":"N","name":"filterstr","req":"false","type":"CephString"}],"help":"show the blocked ops currently in flight"},"cmd013":{"sig":["dump_historic_ops",{"n":"N","name":"filterstr","req":"false","type":"CephString"}],"help":"show recent ops"},"cmd014":{"sig":["dump_historic_ops_by_duration",{"n":"N","name":"filterstr","req":"false","type":"CephString"}],"help":"show slowest recent ops, sorted by duration"},"cmd015":{"sig":["dump_historic_slow_ops",{"n":"N","name":"filterstr","req":"false","type":"CephString"}],"help":"show slowest recent ops"},"cmd016":{"sig":["dump_mempools"],"help":"get mempool stats"},"cmd017":{"sig":["dump_objectstore_kv_stats"],"help":"print statistics of kvdb which used by bluestore"},"cmd018":{"sig":["dump_op_pq_state"],"help":"dump op priority queue state"},"cmd019":{"sig":["dump_ops_in_flight",{"n":"N","name":"filterstr","req":"false","type":"CephString"}],"help":"show the ops currently in flight"},"cmd020":{"sig":["dump_pgstate_history"],"help":"show recent state history"},"cmd021":{"sig":["dump_reservations"],"help":"show recovery reservations"},"cmd022":{"sig":["dump_scrubs"],"help":"print scheduled scrubs"},"cmd023":{"sig":["dump_watchers"],"help":"show clients which have active watches, and on which objects"},"cmd024":{"sig":["flush_journal"],"help":"flush the journal to permanent store"},"cmd025":{"sig":["flush_store_cache"],"help":"Flush bluestore internal cache"},"cmd026":{"sig":["get_command_descriptions"],"help":"list available commands"},"cmd027":{"sig":["get_heap_property",{"name":"property","type":"CephString"}],"help":"get malloc extension heap property"},"cmd028":{"sig":["get_latest_osdmap"],"help":"force osd to update the latest map from the mon"},"cmd029":{"sig":["getomap",{"name":"pool","type":"CephString"},{"name":"objname","type":"CephObjectname"}],"help":"output entire object map"},"cmd030":{"sig":["git_version"],"help":"get git sha1"},"cmd031":{"sig":["heap",{"name":"heapcmd","type":"CephString"}],"help":"show heap usage info (available only if compiled with tcmalloc)"},"cmd032":{"sig":["help"],"help":"list available commands"},"cmd033":{"sig":["injectdataerr",{"name":"pool","type":"CephString"},{"name":"objname","type":"CephObjectname"},{"name":"shardid","range":"0|255","req":"false","type":"CephInt"}],"help":"inject data error to an object"},"cmd034":{"sig":["injectfull",{"name":"type","req":"false","type":"CephString"},{"name":"count","req":"false","type":"CephInt"}],"help":"Inject a full disk (optional count times)"},"cmd035":{"sig":["injectmdataerr",{"name":"pool","type":"CephString"},{"name":"objname","type":"CephObjectname"},{"name":"shardid","range":"0|255","req":"false","type":"CephInt"}],"help":"inject metadata error to an object"},"cmd036":{"sig":["log","dump"],"help":"dump recent log entries to log file"},"cmd037":{"sig":["log","flush"],"help":"flush log entries to log file"},"cmd038":{"sig":["log","reopen"],"help":"reopen log file"},"cmd039":{"sig":["objecter_requests"],"help":"show in-progress osd requests"},"cmd040":{"sig":["ops",{"n":"N","name":"filterstr","req":"false","type":"CephString"}],"help":"show the ops currently in flight"},"cmd041":{"sig":["perf","dump",{"name":"logger","req":"false","type":"CephString"},{"name":"counter","req":"false","type":"CephString"}],"help":"dump perfcounters value"},"cmd042":{"sig":["perf","histogram","dump",{"name":"logger","req":"false","type":"CephString"},{"name":"counter","req":"false","type":"CephString"}],"help":"dump perf histogram values"},"cmd043":{"sig":["perf","histogram","schema"],"help":"dump perf histogram schema"},"cmd044":{"sig":["perf","reset",{"name":"var","type":"CephString"}],"help":"perf reset <name>: perf reset all or one perfcounter name"},"cmd045":{"sig":["perf","schema"],"help":"dump perfcounters schema"},"cmd046":{"sig":["perfcounters_dump"],"help":""},"cmd047":{"sig":["perfcounters_schema"],"help":""},"cmd048":{"sig":["rmomapkey",{"name":"pool","type":"CephString"},{"name":"objname","type":"CephObjectname"},{"name":"key","type":"CephString"}],"help":"remove omap key"},"cmd049":{"sig":["set_heap_property",{"name":"property","type":"CephString"},{"name":"value","type":"CephInt"}],"help":"update malloc extension heap property"},"cmd050":{"sig":["set_recovery_delay",{"name":"utime","req":"false","type":"CephInt"}],"help":"Delay osd recovery by specified seconds"},"cmd051":{"sig":["setomapheader",{"name":"pool","type":"CephString"},{"name":"objname","type":"CephObjectname"},{"name":"header","type":"CephString"}],"help":"set omap header"},"cmd052":{"sig":["setomapval",{"name":"pool","type":"CephString"},{"name":"objname","type":"CephObjectname"},{"name":"key","type":"CephString"},{"name":"val","type":"CephString"}],"help":"set omap key"},"cmd053":{"sig":["status"],"help":"high-level status of OSD"},"cmd054":{"sig":["trigger_scrub",{"name":"pgid","type":"CephString"}],"help":"Trigger a scheduled scrub "},"cmd055":{"sig":["truncobj",{"name":"pool","type":"CephString"},{"name":"objname","type":"CephObjectname"},{"name":"len","type":"CephInt"}],"help":"truncate object to length"},"cmd056":{"sig":["version"],"help":"get ceph version"}}root@plana120:/home/ceph-dev/build# 
root@plana120:/home/ceph-dev/build#

Related issues

Copied to Ceph - Backport #21046: luminous: "ceph daemon osd.0 get_command_descriptions" needs to have a line break at the end of result Resolved

History

#1 Updated by wb song almost 2 years ago

The result and "root@plana120:/home/ceph-dev/build#" joined together.

#4 Updated by Nathan Cutler almost 2 years ago

  • Tracker changed from Cleanup to Bug
  • Status changed from New to Need Review
  • Backport set to luminous
  • Regression set to No
  • Severity set to 3 - minor

#5 Updated by Nathan Cutler almost 2 years ago

  • Status changed from Need Review to Pending Backport

#6 Updated by Nathan Cutler almost 2 years ago

  • Assignee set to wb song

#7 Updated by Nathan Cutler almost 2 years ago

  • Copied to Backport #21046: luminous: "ceph daemon osd.0 get_command_descriptions" needs to have a line break at the end of result added

#8 Updated by Nathan Cutler almost 2 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF