标签: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