首页 > 解决方案 > Ceph意外删除client.admin

问题描述

在学习 Ceph 时,我不小心删除了 client.admin 使用

ceph auth del client.admin 

现在我明白了

client.admin 认证错误(1) Operation not allowed.Error connected to cluster: PermissionError

每时每刻。

有没有办法恢复或重新创建新的 client.admin?
我试过了

ceph auth import -i /etc/ceph/ceph.client.admin.keyringceph add client.admin

它对我不起作用。

标签: ceph

解决方案


尝试连接 ceph-node-1 上的 mon keyring

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 *'

然后更新 /etc/ceph/ceph.client.admin.keyring


推荐阅读