Proxmox 4.1 and ceph = ERROR: missing keyring, cannot use cephx for authentication

Foxhound77

New Member
Jan 29, 2016
8
0
1
34
Hello,

I have a problem : when I reboot my node the osd don't start.
I have this in my syslog :

Code:
Starting Ceph mon.0 on Proxmox-XXX...
Mar  8 14:31:54 Proxmox-XXX ceph[2178]: Running as unit ceph-mon.0.1457443914.385741122.service.
Mar  8 14:31:54 Proxmox-XXX systemd[1]: Starting /bin/bash -c ulimit -n 32768;  /usr/bin/ceph-mon -i 0 --pid-file /var/run/ceph/mon.0.pid -c /etc/ceph/ceph.conf --cluster ceph -f...
Mar  8 14:31:54 Proxmox-XXX systemd[1]: Started /bin/bash -c ulimit -n 32768;  /usr/bin/ceph-mon -i 0 --pid-file /var/run/ceph/mon.0.pid -c /etc/ceph/ceph.conf --cluster ceph -f.
Mar  8 14:31:54 Proxmox-XXX ceph[2178]: Starting ceph-create-keys on Proxmox-XXX...
Mar  8 14:31:54 Proxmox-XXX ceph[2178]: === osd.0 ===
Mar  8 14:31:54 Proxmox-XXX ceph[2178]: 2016-03-08 14:31:54.699766 7fd74c926700 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication
Mar  8 14:31:54 Proxmox-XXX ceph[2178]: 2016-03-08 14:31:54.699770 7fd74c926700  0 librados: osd.0 initialization error (2) No such file or directory
Mar  8 14:31:54 Proxmox-XXX ceph[2178]: Error connecting to cluster: ObjectNotFound
Mar  8 14:31:54 Proxmox-XXX ceph[2178]: failed: 'timeout 30 /usr/bin/ceph -c /etc/ceph/ceph.conf --name=osd.0 --keyring=/var/lib/ceph/osd/ceph-0/keyring osd crush create-or-move -- 0 0.02 host=Proxmox-XXX root=default'
It's the same error for my 4 OSDs.

However when the node is ready I'm able to run manually ceph (systemctl restart ceph.service) and the cluster works fine...

My question : why ceph cannot run at boot but I can run it manually ?

Thank you,
 
I have moved the keering to another place (/etc/ceph) and edit the ceph.conf
I have the same result
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!