Kubernetes 在mount pvc上发现ceph rook部署问题

Kubernetes 在mount pvc上发现ceph rook部署问题,kubernetes,ceph,Kubernetes,Ceph,我是沃伦。尝试在我的k8s环境中通过rook设置ceph。我遵循官方文件 . 在ceph设置期间,Almost everythings外观良好。我还用计算机进行了验证 ceph状态 集群: id:356efdf1-a1a7-4365-9ee6-b65ecf8481f9 健康状况:健康状况良好 但在示例中失败,请尝试在k8s环境中使用块存储。我的k8s环境是v1.18.2 在部署mysql和workpress之后。在pod上发现错误。如下图所示。我还检查了pv和pvc。他们都创造了成功和成功。因

我是沃伦。尝试在我的k8s环境中通过rook设置ceph。我遵循官方文件 . 在ceph设置期间,Almost everythings外观良好。我还用计算机进行了验证

ceph状态 集群: id:356efdf1-a1a7-4365-9ee6-b65ecf8481f9 健康状况:健康状况良好

但在示例中失败,请尝试在k8s环境中使用块存储。我的k8s环境是v1.18.2

在部署mysql和workpress之后。在pod上发现错误。如下图所示。我还检查了pv和pvc。他们都创造了成功和成功。因此,我认为有关装载兼容性的一些错误。请帮忙

-----------------------------------------------------
Events:
  Type     Reason                  Age                  From                     Message
  ----     ------                  ----                 ----                     -------
  Warning  FailedScheduling        <unknown>            default-scheduler        running "VolumeBinding" filter plugin for pod "wordpress-mysql-764fc64f97-qwtjd": pod has unbound immediate PersistentVolumeClaims
  Warning  FailedScheduling        <unknown>            default-scheduler        running "VolumeBinding" filter plugin for pod "wordpress-mysql-764fc64f97-qwtjd": pod has unbound immediate PersistentVolumeClaims
  Normal   Scheduled               <unknown>            default-scheduler        Successfully assigned default/wordpress-mysql-764fc64f97-qwtjd to master1
  Normal   SuccessfulAttachVolume  7m14s                attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-dc8567bb-c2e3-44a4-a56a-c74616059db4"
  Warning  FailedMount             5m11s                kubelet, master1         Unable to attach or mount volumes: unmounted volumes=[mysql-persistent-storage], unattached volumes=[default-token-czg9j mysql-persistent-storage]: timed out waiting for the condition
  Warning  FailedMount             40s (x2 over 2m54s)  kubelet, master1         Unable to attach or mount volumes: unmounted volumes=[mysql-persistent-storage], unattached volumes=[mysql-persistent-storage default-token-czg9j]: timed out waiting for the condition
  Warning  FailedMount             6s (x4 over 6m6s)    kubelet, master1         MountVolume.MountDevice failed for volume "pvc-dc8567bb-c2e3-44a4-a56a-c74616059db4" : rpc error: code = Internal desc = rbd: map failed with error an error (exit status 110) occurred while running rbd args: [--id csi-rbd-node -m 10.109.63.94:6789,10.96.135.241:6789,10.110.131.193:6789 --keyfile=***stripped*** map replicapool/csi-vol-5ccc546b-0914-11eb-9135-62dece6c0d98 --device-type krbd], rbd error output: rbd: sysfs write failed
-------------------------------------------------
-----------------------------------------------------
活动:
从消息中键入原因年龄
----     ------                  ----                 ----                     -------
警告失败调度默认调度程序运行pod“wordpress-mysql-764fc64f97-qwtjd”的“VolumeBinding”过滤器插件:pod已解除即时PersistentVolumeClaims的绑定
警告失败调度默认调度程序运行pod“wordpress-mysql-764fc64f97-qwtjd”的“VolumeBinding”过滤器插件:pod已解除即时PersistentVolumeClaims的绑定
正常计划的默认计划程序已成功将default/wordpress-mysql-764fc64f97-qwtjd分配给master1
正常成功附加卷7m14s附加附加附加控制器附加卷。附加卷“pvc-dc8567bb-c2e3-44a4-a56a-c74616059db4”成功

警告FailedMount 5m11s kubelet,master1无法连接或装载卷:未安装的卷=[mysql持久存储],未连接的卷=[default-token-czg9j mysql持久存储]:等待条件时超时 警告FailedMount 40s(x2/2m54s)kubelet,master1无法连接或装载卷:未安装的卷=[mysql持久存储],未连接的卷=[mysql持久存储默认值-token-czg9j]:等待条件时超时 警告FailedMount 6s(x4超过6m6s)kubelet,master1 MountVolume.MountDevice针对卷“pvc-dc8567bb-c2e3-44a4-a56a-c74616059db4”失败:rpc错误:代码=内部描述=rbd:映射失败,出现错误运行rbd args时出现错误(退出状态110):[--id csi rbd node-m 10.109.63.94:6789,10.96.135.241:6789,10.110.131.193:6789--keyfile=***剥离***映射复制池/csi-vol-5cc546b-0914-11eb-9135-62dece6c0d98--设备类型krbd],rbd错误输出:sysfs写入失败 -------------------------------------------------
sistent storage]:等待条件警告FailedMount 40s(x2/2m54s)kubelet超时,master1无法连接或装载卷:未安装的卷=[mysql持久存储],未连接的卷=[mysql持久存储默认值-token-czg9j]:等待条件警告失败超时安装6s(x4超过6m6s)kubelet,master1 MountVolume.MountDevice为卷“pvc-dc8567bb-c2e3-44a4-a56a-c74616059db4”失败:rpc错误:代码=内部描述=rbd:mapmy,pv,pvc,可以成功创建[root@master1库伯内特斯]#kubectl获取pv名称容量访问模式回收策略状态索赔存储类原因年龄pvc-da0b8563-6e03-4d8d-8566-aacd25576a30 8Gi RWO删除绑定默认/wp pv索赔rook ceph block 33mpvc-dc8567bb-c2e3-44a4-a56a-c74616059db4 6Gi RWO删除绑定默认/mysql pv索赔rook ceph block 33mNAME状态卷容量访问模式存储类年龄mysql pv索赔绑定pvc-dc8567bb-c2e3-44a4-a56a-c74616059db4 6GiRWO rook ceph block 33m wp pv索赔绑定pvc-da0b8563-6e03-4d8d-8566-aacd25576a30 8Gi RWO rook ceph block 33m支架存储):等待条件警告失败超时安装40s(x2/2m54s)kubelet,master1无法连接或安装卷:未安装的卷=[mysql persistent storage],未连接卷=[mysql persistent storage default-token-czg9j]:等待条件警告失败装载6s(x4超过6m6s)kubelet,master1 MountVolume.MountDevice对卷“pvc-dc8567bb-c2e3-44a4-a56a-c74616059db4”失败时超时:rpc错误:code=Internal desc=rbd:mapmy、pv、pvc无法成功创建[root@master1库伯内特斯]#kubectl get pv NAME容量访问模式回收策略状态索赔存储类原因年龄pvc-da0b8563-6e03-4d8d-8566-aacd25576a30 8Gi RWO删除绑定默认值/wp pv索赔rook ceph block 33m pvc-dc8567bb-c2e3-44a4-a56a-c74616059db4 6Gi RWO删除绑定默认/mysql pv声明rook ceph块33mNAME状态卷容量访问模式STORAGECLASS年龄mysql pv声明绑定pvc-dc8567bb-c2e3-44a4-a56a-c74616059db4 6Gi RWO rook ceph块33m wp pv索赔绑定pvc-da0b8563-6e03-4d8d-8566-aacd25576a30 8Gi RWO rook ceph区块33m