eip-work / kuboard-press

Kuboard 是基于 Kubernetes 的微服务管理界面。同时提供 Kubernetes 免费中文教程,入门教程,最新版本的 Kubernetes v1.23.4 安装手册,(k8s install) 在线答疑,持续更新。
https://kuboard.cn/
22.26k stars 1.51k forks source link

创建pvc连接ceph失败 #273

Open zhbitzwz opened 3 years ago

zhbitzwz commented 3 years ago

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 作为存储类

cuijianguo commented 1 year ago

请问您解决了吗? 我也遇到这个问题 不知道怎么解决