Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ceph delete client.admin accidently

Tags:

ceph

While learning Ceph , I accidently delete client.admin by using

ceph auth del client.admin 

Now I get

client.admin authentication error (1) Operation not permitted.Error connecting to cluster: PermissionError

all the time.

Is there a way to recover or recreate a new client.admin?
I've tried

ceph auth import -i /etc/ceph/ceph.client.admin.keyring and ceph add client.admin

It didn't work for me.

like image 734
Terry Wang Avatar asked Dec 07 '25 05:12

Terry Wang


1 Answers

try to connect with mon keyring on ceph-node-1

ceph -n mon. --keyring /var/lib/ceph/mon/ceph-node-1/keyring get-or-create client.admin mon 'allow *' mds 'allow *' mgr 'allow *' osd 'allow *'

then update /etc/ceph/ceph.client.admin.keyring

like image 67
Sergey Bondarev Avatar answered Dec 11 '25 20:12

Sergey Bondarev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!