Bug #23125
Bad help text when 'ceph osd pool' is run
0%
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 "
Related issues
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