synology-csi icon indicating copy to clipboard operation
synology-csi copied to clipboard

Failed to find device

Open Earthson opened this issue 5 years ago • 1 comments
trafficstars

MountVolume.SetUp failed for volume "pvc-eb1e2360-f321-4653-aeed-967d1bdcad46" : kubernetes.io/csi: mounter.SetupAt failed: rpc error: code = Unknown desc = Failed to find device for iqn.2000-01.com.synology:kube-csi-pvc-eb1e2360-f321-4653-aeed-967d1bdcad46-lun-1

exist: iqn.2000-01.com.synology:kube-csi-pvc-eb1e2360-f321-4653-aeed-967d1bdcad46

PV and PVC seems to be correct.

kubectl describe pvc katib-mysql -n kubeflow

Name:          katib-mysql
Namespace:     kubeflow
StorageClass:  synology-iscsi-storage
Status:        Bound
Volume:        pvc-eb1e2360-f321-4653-aeed-967d1bdcad46
Labels:        app.kubernetes.io/component=katib
               app.kubernetes.io/name=katib-controller
Annotations:   pv.kubernetes.io/bind-completed: yes
               pv.kubernetes.io/bound-by-controller: yes
               volume.beta.kubernetes.io/storage-provisioner: csi.synology.com
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      10Gi
Access Modes:  RWO
VolumeMode:    Filesystem
Mounted By:    katib-mysql-5754b5dd66-w7gl6
Events:
  Type     Reason                 Age                 From                                                                              Message
  ----     ------                 ----                ----                                                                              -------
  Normal   ExternalProvisioning   18m (x62 over 33m)  persistentvolume-controller                                                       waiting for a volume to be created, either by external provisioner "csi.synology.com" or manually created by system administrator
  Warning  ProvisioningFailed     13m                 persistentvolume-controller                                                       storageclass.storage.k8s.io "synology-iscsi-storage" not found
  Normal   Provisioning           11m                 csi.synology.com_synology-csi-provisioner-0_503fa873-e55b-407a-91b4-c947eda5c855  External provisioner is provisioning volume for claim "kubeflow/katib-mysql"
  Normal   ProvisioningSucceeded  11m                 csi.synology.com_synology-csi-provisioner-0_503fa873-e55b-407a-91b4-c947eda5c855  Successfully provisioned volume pvc-eb1e2360-f321-4653-aeed-967d1bdcad46

Earthson avatar Sep 14 '20 05:09 Earthson

It appears the iscsi volume is not mounted to the host. Can you check if you have 'iscsiadm' installed on your host?

jparklab avatar Sep 18 '20 18:09 jparklab