Project

General

Profile

Actions

Bug #19658

closed

"error calling conf_read_file: error code 22" means the Ceph conf file doesn't exist

Added by Alfredo Deza about 7 years ago. Updated almost 7 years ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Similar to bug #10877 ("CLI error numbers are not described anywhere"). When trying to run any Ceph CLI commands on a cluster where the name is not 'ceph' this happens:

$ sudo ceph -s
Error initializing cluster client: Error('error calling conf_read_file: error code 22',)

But the configuration file is there:

$ ls /etc/ceph
ceph.d  rbdmap  test.client.admin.keyring  test.conf

In this case, it is 'test.conf'. It would be good to have an error that says what it looked for and why it failed (vs. function names and code numbers), for example:

$ sudo ceph -s
Error initializing cluster client: Error('tried to read /etc/ceph/ceph.conf but file does not exist') 

Other tickets opened that mention 'error code 22' that might be the same: #18000, #18001, #15884, #17238

Actions #1

Updated by Alfredo Deza almost 7 years ago

Dan opened a PR to address most of the issues in this ticket: https://github.com/ceph/ceph/pull/14757

Actions #2

Updated by Alfredo Deza almost 7 years ago

merged commit 4ba4567 into ceph:master

Not entirely sure how that output looks though, would be nice to have an update on that here

Actions #3

Updated by Greg Farnum almost 7 years ago

  • Status changed from New to Resolved

Calling this done for now, since there were specific improvements. Other issues can get new tickets.

Actions

Also available in: Atom PDF