Bug #23125
closedBad 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 "
Files