cephfs:librados: client.bootstrap-mds authentication error (1) Operation not permitted

创建mds时(ceph-deploy mds create node2)报错:

[node2][INFO  ] Running command: ceph --cluster ceph --name client.bootstrap-mds --keyring /var/lib/ceph/bootstrap-mds/ceph.keyring auth get-or-create mds.node2 osd allow rwx mds allow mon allow profile mds -o /var/lib/ceph/mds/ceph-node2/keyring
[node2][ERROR ] 2019-10-09 11:51:55.700140 7f907f7c4700  0 librados: client.bootstrap-mds authentication error (1) Operation not permitted
[node2][ERROR ] Error connecting to cluster: PermissionError
[node2][ERROR ] exit code from command was: 1
[ceph_deploy.mds][ERROR ] could not create mds
[ceph_deploy][ERROR ] GenericError: Failed to create 1 MDSs

》1、查看client.bootstrap-mds的key值

[root@node2 mon]# ceph auth get client.bootstrap-mds --name mon. --keyring /var/lib/ceph/mon/ceph-node2/keyring
exported keyring for client.bootstrap-mds
[client.bootstrap-mds]
        key = AQAmVp1dl+mYGRAADUXZ2WxquEA9+NT8a+jkAQ==
        caps mon = "allow profile bootstrap-mds"
[root@node2 mon]# 

2、修改key值权限

ceph -n mon. --keyring /var/lib/ceph/mon/ceph-node2/keyring auth caps client.bootstrap-mds mds 'allow *' osd 'allow *' mon 'allow *'

3、重新执行mds创建命令。

 

上一篇:啤酒和饮料(2014蓝桥杯B组1)


下一篇:[斯坦福大学2014机器学习教程笔记]第五章-计算数据