kuboard-press
kuboard-press copied to clipboard
创建pvc连接ceph失败
Hi~就是csi连接不上ceph集群,报错是这样的:
failed to provision volume with StorageClass "csi-rbd-sc": rpc error: code = InvalidArgument desc = an error (exit status 13) occurred while running ceph args: [-m 10.200.10.190:6789,10.200.10.194:6789,10.200.10.195:6789 --id admin --keyfile=stripped -c /etc/ceph/ceph.conf fs get cephfs --format=json]
进入csi-cephfsplugin pod调试,执行命令
ceph -m 10.200.10.190:6789,10.200.10.194:6789,10.200.10.195:6789 --id kubernetes --keyfile=密钥 -c /etc/ceph/ceph.conf fs get cephfs --format=json
报错如下:
[errno 1] RADOS permission error (error connecting to the cluster)
直接在pod执行 ceph -s 报错: unable to get monitor info from DNS SRV with service name: ceph-mon [errno 2] RADOS object not found (error connecting to the cluster)
版本信息 1.kubernetes版本
Client Version: v1.18.17 Server Version: v1.18.17
2.ceph版本 ceph version 14.2.22 (ca74598065096e6fcbd8433c8779a2be0c889351) nautilus (stable)
3.csi使用 CephFS 作为存储类
请问您解决了吗? 我也遇到这个问题 不知道怎么解决