user9
user9

Reputation: 31

ceph health command returns a failure

i'm new to ceph but have to build a mini-cluster as part of a project, i have been following an online tutorial of how to build one and all was fine until i restarted my machines the following day. now when i perform the command ceph health it returns an error saying: 2015-01-08 15:35:04.037375 7fae717fa700 0 -- :/1003525 >> 192.168.1.12:6789/0 pipe(0x7fae6c000c00 sd=3 :0 s=1 pgs=0 cs=0 l=1 c=0x7fae6c000e90).fault.

and whenever i run the same command on the 192.168.1.12 machine it returns an error saying: monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication. 0 librados: client.admin initialization error (2) No such file or directory. Error connecting to cluster: ObjectNotFound.

I have been searching the internet for a while now for any answers and not found much, i noticed this site tends to be good in answering most if not all questions though, so any help would be greatly appreciated thanks. Im using centos 7 on all machines if thats any help.

Upvotes: 3

Views: 12572

Answers (2)

Saverio Proto
Saverio Proto

Reputation: 1145

Check if you have the permission to read the keyring file in

/etc/ceph/ceph.client.admin.keyring

If this file is not readable by your user, or it is missing, you are not able to do

ceph -w

If the keyring is missing you can install the keyring from the admin node using ceph-deploy admin serverhostname

Upvotes: 9

panda695
panda695

Reputation: 25

As the error saying: ERROR: missing keyring. That means you don't have the keyring file.

Beside, this error, error saying: 2015-01-08 15:35:04.037375 7fae717fa700 0 -- :/1003525 >> 192.168.1.12:6789/0 pipe(0x7fae6c000c00 sd=3 :0 s=1 pgs=0 cs=0 l=1 c=0x7fae6c000e90).fault.

It means your monitor didn't start up cause you missing the keyring file.

Step to resolve this problem: 1. Check the monitor host, and let it start up. 2. Execute the command "ceph -s" on monitor to check this cluster.

Upvotes: 1

Related Questions