Unsolved
This post is more than 5 years old
2 Posts
0
1999
May 4th, 2020 01:00
vxflexos csi driver for kubernetes with block devices
HI,
I am trying out the csi driver for vxflexos from the github page, and according to that readme I should be able to use block devices.
// Can only be published once as read/write on a single node, at
// any given time.
SINGLE_NODE_WRITER = 1;
// Can be published as read/write at multiple nodes
// simultaneously.
MULTI_NODE_MULTI_WRITER = 5;
But when I do, I get the following error
ExitCode:128,Signal:0,Reason:ContainerCannotRun,Message:error gathering device information while adding custom device "/var/lib/kubelet/pods/8067031a-a83a-4f5e-8ac8-48c2ec89db29/volumeDevices/kubernetes.io~csi/k8s-3be9f73946": not a device node
When I check the mounts on that node, it does have the following mount
/var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices/k8s-3be9f73946/dev/8067031a-a83a-4f5e-8ac8-48c2ec89db29 type ext4 (rw,relatime,seclabel,stripe=64,data=ordered)
I am using the following helm template for the pvc.
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ include "fullname" . }}
labels:
{{- include "labels" . | nindent 4 }}
spec:
storageClassName: vxflexos
accessModes:
- ReadWriteMany
volumeMode: Block
resources:
requests:
storage: 8Gi
Another error that I encountered is when deleting the pod. It keeps spamming the following messages
csi_util.go:78] kubernetes.io/csi: loading volume data file [/var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices/k8s-3be9f73946/data/vol_data.json]
csi_plugin.go:676] kubernetes.io/csi: setting up block unmapper for [Spec=k8s-3be9f73946, podUID=8067031a-a83a-4f5e-8ac8-48c2ec89db29]Until I manually unmount the volume on that node myself then it continues and finally it is unmapped successfully.
operation_generator.go:1257] UnmapDevice succeeded for volume "k8s-3be9f73946" (UniqueName: "kubernetes.io/csi/csi-vxflexos.dellemc.com^bf8715ec0000000c")
events found
No Events found!

