码迷,mamicode.com
首页 > 其他好文 > 详细

ceph:failed to find client.admin in keyring

时间:2019-10-09 12:10:00      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:deb   mon   error   type   出错   添加   failed   client   nod   

 

问题:执行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

标签:deb   mon   error   type   出错   添加   failed   client   nod   

原文地址:https://www.cnblogs.com/yajun2019/p/11640659.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!