Fix #6242
Updated by Alfredo Deza over 10 years ago
I wanted to have access to the help menu in the `ceph` CLI, but for some reason it just returns a few log lines without giving me access to the help. This should not happen (specifically for something like `--help`) because we are shutting off users from being able to read about options/flags <pre> vagrant@node1:~$ ceph mon_status --help 2013-09-05 16:35:43.859174 7ff57588d700 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication 2013-09-05 16:35:43.859179 7ff57588d700 0 librados: client.admin initialization error (2) No such file or directory Error connecting to cluster: ObjectNotFound vagrant@node1:~$ ceph --help 2013-09-05 16:36:43.502672 7f7aa3623700 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication 2013-09-05 16:36:43.502676 7f7aa3623700 0 librados: client.admin initialization error (2) No such file or directory Error connecting to cluster: ObjectNotFound </pre> `ceph --version` does seem to work correctly: <pre> ceph ? ?ceph version 0.67.2 (eb4380dd036a0b644c6283869911d615ed729ac8) </pre> After getting help from Tamil, the culprit was that the user did not have permissions to /etc/ceph. If this is the case, then the CLI should always report back *that* error, not something else that is misleading (like "cannot use cephx").