Public bug reported: 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 the keyring -p, --print will print an encoded key for the specified entityname. This is suitable for the 'mount -o secret=..' argument [...] $ ceph-authtool /etc/ceph/keyring --print ceph-authtool: unexpected '--print' [...] $ ceph-authtool /etc/ceph/keyring -p XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX== $ ceph-authtool /etc/ceph/keyring --print-key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX== See the trivial patch attached. ** Affects: ceph (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ceph in Ubuntu. https://bugs.launchpad.net/bugs/1056462 Title: The '--print' option to ceph-authtool is incorrect To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1056462/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs