[SOLVED] Help - I removed the client.admin key and lost the access to the ceph cluster

udo

Distinguished Member
Apr 22, 2009
5,999
207
163
Ahrensburg; Germany
Hi,
I upgrade an ceph-cluster to 19.2.6 and still had the warning, that 1 client entities with insecure key types.
"ceph auth ls" show that client.admin is the only key with aes but the key in /etc/ceph/ceph.client.admin.keyring has allready an aes256 key.
But this key don't shows up in ceph auth ls.

Now the mistake took its course - I create an new key client.adminnew with the same rights
Code:
client.adminnew
        key: XXXXX/dqtSKvECAA2sY7OhKFhKHB/uwDKUQ6YuVOOp0Um3IYkfFTs3XXXXX=
        caps: [mds] allow
        caps: [mgr] allow *
        caps: [mon] allow *
        caps: [osd] allow *
and then remove the key client.admin…

and now I'm in big trouble, because Im not able to recreate client.admin from the keyring /etc/ceph/ceph.client.admin.keyring because the mon is'nt accessible for me
Code:
2026-11-13T17:43:15.929+0100 701cc3fff6c0 -1 monclient(hunting): handle_auth_bad_method failed to auth with my available methods: (13) Permission denied
[errno 13] RADOS permission denied (error connecting to the cluster)

Any help to fix this issue would be very very helpfull!


best regards

Udo
 
Puhh,
fixed!

Found this thread: https://forum.proxmox.com/threads/a...ent-admin-from-one-of-my-monitor-nodes.98690/

And do following:
1. edit /etc/ceph/ceph.conf
Code:
cat /etc/ceph/ceph.conf  
[global]
auth_client_required = none
auth_cluster_required = none
auth_service_required = none
#auth_client_required = cephx
#auth_cluster_required = cephx
#auth_service_required = cephx
restart two mons (0+1)
ceph -w work again

2. import aes256 key
Code:
ceph auth import -i /etc/ceph/ceph.client.admin_aes256.keyring
ceph auth ls

3. enable cephx again in /etc/ceph/ceph.conf and restart mon.0+1 again

4. use the new key in /etc/pve/priv/ceph.client.admin.keyring

Tadaa!!
 
  • Like
Reactions: leesteken