Comments (7)
Hello @autokilla47 @arunmk
After reconfiguring the csidriver with
fsGroupPolicy: ReadWriteOnceWithFSType
VMware support provides the following fix
kubectl apply -f https://gist.githubusercontent.com/arunmk/f0c06b261e1181baf2d17ade1bbcfa4f/raw/051297d21e32eae4748a129d56e183105caa4d84/gistfile1.txt
from cloud-director-named-disk-csi-driver.
Yes This solves the problem but it creates another one. when two pods need to access the same PVC and they are not scheduled on the same node, one of the nodes fails to mount the volume
Warning FailedMount 13s kubelet MountVolume.MountDevice failed for volume "pvc-db604a6a-5241-494c-a934-94f7d9077010" : rpc error: code = Internal desc = unable to format and mount device [/dev/sdc] at path [/var/lib/kubelet/plugins/[kubernetes.io/csi/pv/pvc-db604a6a-5241-494c-a934-94f7d9077010/globalmount](https://fra01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkubernetes.io%2Fcsi%2Fpv%2Fpvc-db604a6a-5241-494c-a934-94f7d9077010%2Fglobalmount&data=05%7C01%7C%7C9f8b8e1f8bf044fb64db08da7b6d9ab3%7C06ba9ba160b04c909fe49f3621194d60%7C0%7C0%7C637958007964405507%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nYpjlXFeXg6YFH3dDjfpcJHXmFHQxtDgBN99UMP1%2Fes%3D&reserved=0)] with fs [[rw]] and flags [mount failed: exit status 32 mounting arguments: -t ext4 -o rw,defaults /dev/sdc /var/lib/kubelet/plugins/[kubernetes.io/csi/pv/pvc-db604a6a-5241-494c-a934-94f7d9077010/globalmount](https://fra01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkubernetes.io%2Fcsi%2Fpv%2Fpvc-db604a6a-5241-494c-a934-94f7d9077010%2Fglobalmount&data=05%7C01%7C%7C9f8b8e1f8bf044fb64db08da7b6d9ab3%7C06ba9ba160b04c909fe49f3621194d60%7C0%7C0%7C637958007964405507%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nYpjlXFeXg6YFH3dDjfpcJHXmFHQxtDgBN99UMP1%2Fes%3D&reserved=0) output: mount: /var/lib/kubelet/plugins/[kubernetes.io/csi/pv/pvc-db604a6a-5241-494c-a934-94f7d9077010/globalmount](https://fra01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkubernetes.io%2Fcsi%2Fpv%2Fpvc-db604a6a-5241-494c-a934-94f7d9077010%2Fglobalmount&data=05%7C01%7C%7C9f8b8e1f8bf044fb64db08da7b6d9ab3%7C06ba9ba160b04c909fe49f3621194d60%7C0%7C0%7C637958007964405507%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nYpjlXFeXg6YFH3dDjfpcJHXmFHQxtDgBN99UMP1%2Fes%3D&reserved=0): mount(2) system call failed: Structure needs cleaning. ]: [%!!(MISSING)!(MISSING)v(MISSING)]
from cloud-director-named-disk-csi-driver.
The example of the DigitalOcean worked is below.
from cloud-director-named-disk-csi-driver.
I am solved this problem. Added CSIDriver spec fsGroupPolicy : File
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: named-disk.csi.cloud-director.vmware.com
spec:
attachRequired: true
podInfoOnMount: false
fsGroupPolicy: File
from cloud-director-named-disk-csi-driver.
@Lorislombardi resolved?
from cloud-director-named-disk-csi-driver.
@Lorislombardi have you used ReadWriteMany
as the access mode? We create a shared disk and allow mounts to multiple VMs only in the ReadWriteMany
case.
from cloud-director-named-disk-csi-driver.
@erdembas would dc8f906 have solved your issue?
from cloud-director-named-disk-csi-driver.
Related Issues (20)
- Support / documentation for installation on clusters not managed via VCD-CSE HOT 7
- Filesystem XFS is mounted as ext4 (fsType: ext4 / filesystem: xfs) HOT 1
- Prepend cluster name in PVC name HOT 1
- Mount failed: exit status 32 (mount point does not exist) HOT 5
- Are named accross a few organization supported?
- Documentation of necessary Role Rights HOT 1
- Support for IDs inside vcloud-csi-config.yaml
- Pods with volume stuck in ContainerCreating with Multi-Attach error due to dangling volumeattachments
- Attaching a disk uses nodeID to find the VM, which fails if hostname in cluster differs from VM name in VMware HOT 5
- Add priorityClassName to csi-node and csi controller
- Allow dynamic "maxVolumesPerNode" like in vSphere's CSI driver
- Snapshot Support HOT 8
- CSI volume snapshot HOT 1
- Unable to mount the PVC to the pod in RKE cluster HOT 6
- Can not pull image cloud-director-named-disk-csi-driver from Harbor HOT 3
- Volume metrics HOT 2
- Retag csi images following SemVer syntax HOT 2
- Add support for fsGroup to named-disk-driver
- Increase max number of volumes on a node HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-director-named-disk-csi-driver.