The '--print' option to ceph-authtool is incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceph (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Running `ceph-authtool keyringfile --print` throws an error claiming that it does not know the option however, the help indicates that this is the valid long-option for '-p'.
Looking at the source code, the command expects '--print-key' and using this works as expected.
Either the help is incorrect or the '--print-key' option is incorrect.
How to reproduce:
$ ceph-authtool --help
no command specified
usage: ceph-authtool keyringfile [OPTIONS]...
where the options are:
-l, --list will list all keys and capabilities present in
-p, --print will print an encoded key for the specified
[...]
$ ceph-authtool /etc/ceph/keyring --print
ceph-authtool: unexpected '--print'
[...]
$ ceph-authtool /etc/ceph/keyring -p
XXXXXXXXXXX
$ ceph-authtool /etc/ceph/keyring --print-key
XXXXXXXXXXX
See the trivial patch attached.
Related branches
Changed in ceph (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
This is fixed upstream in this commit:
http:// ceph.com/ git/?p= ceph.git; a=commit; h=4e40a7849442d 633c9801639fbda f27a97f39888