Project

General

Profile

Bug #23125

Bad help text when 'ceph osd pool' is run

Added by Debashis Mondal about 6 years ago. Updated about 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Administration/Usability
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Execution Steps :
-----------------

1.While executing the cli for creating a snapshot of a pool
#ceph osd pool mksnap <pool name> <snapname>
if the user incorrectly press the Enter Key after "ceph osd pool" the following error message is prompted on the CLI

[root@ceph-server2 ~]# ceph osd pool
Invalid command: missing required parameter stats
osd pool stats {<name>} : obtain stats from all pools, or from specified pool
Error EINVAL: invalid command
[root@ceph-server2 ~]#

This gives an impression as if the only possible option available for the incomplete command is fetching stats from the pool.

Solution:
-----------
This error handling can be made better if we redirect the same message we received on -
#ceph osd pool --help

This lists all possible options available with "ceph osd pool "

ceph command error.PNG View - console output (4.65 KB) Debashis Mondal, 02/26/2018 04:10 AM


Related issues

Duplicates Ceph - Bug #22344: ceph tell mds.* <command> prints only one matching usage Resolved 12/07/2017

History

#1 Updated by Jason Dillaman about 6 years ago

  • Project changed from rbd to RADOS

#2 Updated by Josh Durgin about 6 years ago

  • Subject changed from Wrong Error message displayed when a command ($ceph osd pool) is typed incomplete to Bad help text when 'ceph osd pool' is run
  • Category set to Administration/Usability
  • Status changed from New to Triaged

#3 Updated by guotao Yao about 6 years ago

I am working on this issue. Thanks.

#4 Updated by Kefu Chai about 6 years ago

  • Duplicates Bug #22344: ceph tell mds.* <command> prints only one matching usage added

#5 Updated by Kefu Chai about 6 years ago

  • Status changed from Triaged to Duplicate

Also available in: Atom PDF