简体   繁体   English

无法在Kubernetes裸机部署的Pod上安装OpenEBS创建的PVC

[英]Unable to mount PVC created by OpenEBS on pods on Kubernetes bare-metal deployment

I am facing issues while mounting pvc on pods with openebs installed on bare-metal kubernetes cluster created with RKE. 在将openvcs安装在用RKE创建的裸机kubernetes集群上的openebs上的Pod上安装pvc时,我遇到问题。

Expected Behavior 预期行为

PVC's should be mounted on pods without issues. PVC应该毫无问题地安装在吊舱上。

Current Behavior 当前行为

Pods unable to mount PVC's: 吊舱无法安装PVC:

  Events:
  Type     Reason                  Age                    From                     Message
  ----     ------                  ----                   ----                     -------
  Warning  FailedScheduling        2m9s (x23 over 2m45s)  default-scheduler        pod has unbound PersistentVolumeClaims (repeated 4 times)
  Normal   Scheduled               2m8s                   default-scheduler        Successfully assigned default/minio-deployment-64d7c79464-966jr to 192.168.1.21
  Normal   SuccessfulAttachVolume  2m8s                   attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-63cf6c92-ec99-11e8-85c9-b06ebfd124ff"
  Warning  FailedMount             84s (x4 over 102s)     kubelet, 192.168.1.21    MountVolume.WaitForAttach failed for volume "pvc-63cf6c92-ec99-11e8-85c9-b06ebfd124ff" : failed to get any path for iscsi disk, last err seen:
iscsi: failed to sendtargets to portal 10.43.227.122:3260 output: iscsiadm: cannot make connection to 10.43.227.122: Connection refused
iscsiadm: cannot make connection to 10.43.227.122: Connection refused
iscsiadm: cannot make connection to 10.43.227.122: Connection refused
iscsiadm: cannot make connection to 10.43.227.122: Connection refused
iscsiadm: cannot make connection to 10.43.227.122: Connection refused
iscsiadm: cannot make connection to 10.43.227.122: Connection refused
iscsiadm: connection login retries (reopen_max) 5 exceeded
iscsiadm: No portals found
, err exit status 21
  Warning  FailedMount  24s (x4 over 80s)  kubelet, 192.168.1.21  MountVolume.WaitForAttach failed for volume "pvc-63cf6c92-ec99-11e8-85c9-b06ebfd124ff" : failed to get any path for iscsi disk, last err seen:
iscsi: failed to attach disk: Error: iscsiadm: Could not login to [iface: default, target: iqn.2016-09.com.openebs.jiva:pvc-63cf6c92-ec99-11e8-85c9-b06ebfd124ff, portal: 10.43.227.122,3260].
iscsiadm: initiator reported error (12 - iSCSI driver not found. Please make sure it is loaded, and retry the operation)
iscsiadm: Could not log into all portals
Logging in to [iface: default, target: iqn.2016-09.com.openebs.jiva:pvc-63cf6c92-ec99-11e8-85c9-b06ebfd124ff, portal: 10.43.227.122,3260] (multiple)
 (exit status 12)
  Warning  FailedMount  2s  kubelet, 192.168.1.21  Unable to mount volumes for pod "minio-deployment-64d7c79464-966jr_default(640263d0-ec99-11e8-85c9-b06ebfd124ff)": timeout expired waiting for volumes to attach or mount for pod "default"/"minio-deployment-64d7c79464-966jr". list of unmounted volumes=[storage]. list of unattached volumes=[storage default-token-9n8pn]

Steps to Reproduce 重现步骤

  1. Install openebs with helm. 使用头盔安装openebs。
  2. Create a pvc with storage class as openebs-standalone 创建一个存储类别为openebs-standalone的pvc
  3. Create pod and try to mount the PVC. 创建荚并尝试安装PVC。

kubectl get pvc : kubectl get pvc

root@an4:/home/rke-k8s# kubectl get pvc
NAME                                      STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS         AGE
docker-private-registry-docker-registry   Bound    pvc-58cf63c1-ec95-11e8-9b5d-2cfda16d3cfd   10Gi       RWO            openebs-standalone   22m

Update 更新资料

When I tried the sample minio deployment, here's what I have observed: 当我尝试样本minio部署时,这是我观察到的内容:

  1. PVC creation took around 1-2 minutes. PVC的创建大约需要1-2分钟。
  2. Mounting PVC to the pod took around 1 hour. 将PVC安装到吊舱大约需要1个小时。
  3. Storage class used for this was openebs-standard . 用于此的存储类是openebs-standard

Any reason for this? 有什么原因吗? It is on-prem cluster deployment. 它是本地群集部署。

好吧,此问题已在故障排除指南中记录-https: //docs.openebs.io/docs/next/tsgiscsi.html

This is the issue with openebs and already been opened with team. 这是openebs的问题,已经与团队讨论过。 Fix is still pending, you can track the issue here: 修复仍在进行中,您可以在此处跟踪问题:

https://github.com/openebs/openebs/issues/1688 https://github.com/openebs/openebs/issues/1688

There is step by step instruction how to debug the issue. 有逐步说明如何调试问题。 Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM