"ceph auth caps" doesnt print errmsg when perm flag in MDS cap is wrong
ceph auth caps doesn't print an error message when permission flag in MDS capability string passed by user is incorrect. This behaviour is wrong, others commands (
ceph fs authorize,
ceph auth add,
ceph auth get-or-create and
ceph auth get-or-create-keyring) do print a proper error message in such circumstances.
Make necessary changes to enable
ceph auth caps to print error message like other commands.