ceph:failed to find client.admin in keyring
Posted yajun2019
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ceph:failed to find client.admin in keyring相关的知识,希望对你有一定的参考价值。
问题:执行ceph-deploy mon create-initial出错
[node2][INFO ] Running command: /usr/bin/ceph --connect-timeout=25 --cluster=ceph --admin-daemon=/var/run/ceph/ceph-mon.node2.asok mon_status [node2][INFO ] Running command: /usr/bin/ceph --connect-timeout=25 --cluster=ceph --name mon. --keyring=/var/lib/ceph/mon/ceph-node2/keyring auth get client.admin [node2][INFO ] Running command: /usr/bin/ceph --connect-timeout=25 --cluster=ceph --name mon. --keyring=/var/lib/ceph/mon/ceph-node2/keyring auth get-or-create client.admin osd allow * mds allow * mon allow * mgr allow * [node2][ERROR ] "ceph auth get-or-create for keytype admin returned 22 [node2][DEBUG ] Error EINVAL: unknown cap type ‘mgr‘ [node2][ERROR ] Failed to return ‘admin‘ key from host node2 [node1][DEBUG ] connected to host: node1
》1、执行上一个命令获取client.admin的key,提示“failed to find client.admin in keyring”
[root@node2 ~]# /usr/bin/ceph --connect-timeout=25 --cluster=ceph --name mon. --keyring=/var/lib/ceph/mon/ceph-node2/keyring auth get client.admin Error ENOENT: failed to find client.admin in keyring
2、添加新的client.admin,再查询key
[root@node2 ~]# ceph auth add client.admin --name mon. --keyring /var/lib/ceph/mon/ceph-node2/keyring added key for client.admin [root@node2 ~]# /usr/bin/ceph --connect-timeout=25 --cluster=ceph --name mon. --keyring=/var/lib/ceph/mon/ceph-node2/keyring auth get client.admin exported keyring for client.admin [client.admin] key = AQCbUJ1dPCJVFBAA9jW0I1btsTkGIUxdsLRCXQ== [root@node2 ~]#
3、重新执行“ceph-deploy mon create-initial”正常
以上是关于ceph:failed to find client.admin in keyring的主要内容,如果未能解决你的问题,请参考以下文章
find命令find: missing argument to解决方法
intellij say “cannot find declaration to go to“
intellij say “cannot find declaration to go to“
intellij say “cannot find declaration to go to“