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

Create directories before mounting.

Open mwmix opened this issue 4 years ago • 0 comments
trafficstars

Updated to use mount-utils as "k8s.io/utils/mount" is soon to be deprecated.

Fixed issue where directory is not being created and causing everything to fail.

│ csi-plugin I0721 23:06:58.677737       1 session.go:308] Logged in. Timeout minute: 15                                                                                                                            │
│ csi-plugin I0721 23:06:58.677784       1 session.go:357] Querying https://nas1.k8s.input-error.local:5000/webapi/entry.cgi?_sid=J7Rp9z7BxTGc_SRSpvbHoX70vhQbkxS6Y22M49I0M4I4yiRT0ChZlZEv5keO0LmQLREziR0QgM_0jzw2_ │
│ nbBJI&additional=%5B%22acls%22%2C%22connected_sessions%22%2C%22mapped_lun%22%2C%22status%22%5D&api=SYNO.Core.ISCSI.Target&method=get&target_id=%222%22&version=1                                                  │
│ csi-plugin I0721 23:06:58.759047       1 iscsi.go:73] [EXECUTING] /sbin/iscsiadm --mode discovery --type sendtargets --portal nas1.k8s.input-error.local --discover                                               │
│ csi-plugin I0721 23:06:58.814140       1 iscsi.go:73] [EXECUTING] /sbin/iscsiadm --mode session                                                                                                                   │
│ csi-plugin I0721 23:06:58.828188       1 nodeserver.go:128] Found an existing session for iqn.2000-01.com.synology:kube-csi-pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474                                              │
│ csi-plugin I0721 23:06:59.829419       1 nodeserver.go:65] ip-172.16.1.50:3260-iscsi-iqn.2000-01.com.synology:kube-csi-pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474-lun-1                                             │
│ csi-plugin I0721 23:06:59.829455       1 nodeserver.go:155] Target path: /var/lib/kubelet/pods/4b861143-7892-4183-aabb-198db1188f9c/volumes/kubernetes.io~csi/pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474/mount      │
│ csi-plugin I0721 23:06:59.829608       1 nodeserver.go:183] Mounting /dev/disk/by-path/ip-172.16.1.50:3260-iscsi-iqn.2000-01.com.synology:kube-csi-pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474-lun-1 to /var/lib/kub │
│ elet/pods/4b861143-7892-4183-aabb-198db1188f9c/volumes/kubernetes.io~csi/pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474/mount(fstype: ext4, options: [rw])                                                              │
│ csi-plugin E0721 23:07:00.200932       1 mount_linux.go:150] Mount failed: exit status 32                                                                                                                         │
│ csi-plugin Mounting command: mount                                                                                                                                                                                │
│ csi-plugin Mounting arguments: -t ext4 -o rw,defaults /dev/disk/by-path/ip-172.16.1.50:3260-iscsi-iqn.2000-01.com.synology:kube-csi-pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474-lun-1 /var/lib/kubelet/pods/4b861143 │
│ -7892-4183-aabb-198db1188f9c/volumes/kubernetes.io~csi/pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474/mount                                                                                                             │
│ csi-plugin Output: mount: /var/lib/kubelet/pods/4b861143-7892-4183-aabb-198db1188f9c/volumes/kubernetes.io~csi/pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474/mount: mount point does not exist.                        │
│ csi-plugin I0721 23:07:00.201008       1 nodeserver.go:191] Failed to mount /dev/disk/by-path/ip-172.16.1.50:3260-iscsi-iqn.2000-01.com.synology:kube-csi-pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474-lun-1 to /var/ │
│ lib/kubelet/pods/4b861143-7892-4183-aabb-198db1188f9c/volumes/kubernetes.io~csi/pvc-1eb2ce99-16ca-4ca1-9e8c-f35729e7f474/mount(fstype: ext4, options: [rw]): mount failed: exit status 32

mwmix avatar Jul 22 '21 00:07 mwmix