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

Also available in: Atom PDF