Project

General

Profile

Actions

Fix #6242

closed

ceph CLI should honor `--help` and not return log lines back

Added by Alfredo Deza over 10 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
ceph cli
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

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

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

`ceph --version` does seem to work correctly:

ceph version 0.67.2 (eb4380dd036a0b644c6283869911d615ed729ac8)

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").


Related issues 1 (1 open0 closed)

Related to Ceph - Bug #5634: auth startup reports "ObjectNotFound" when keyring file is unreadableNew

Actions
Actions

Also available in: Atom PDF