Closed electrical closed 3 years ago
This is strange, since every path to modules in the code points to /lib/modules, not /usr/lib/modules:
The helm files indeed point to that originally. As i mentioned I changed it in the helm deployment to /usr/lib/modules to test it out if that would fix the issue since /lib/modules is symlinked but that didn't work. Sorry for the confusion.
After a few hours of googling i found more projects that have the issues with the /lib/modules directory ( https://github.com/cilium/cilium/pull/7794 for example )
Removing the type: Directory
seems to solve it for me.
Hey. Would you like to create a PR for this? We are willing to merge it. :)
More than happy to :-) Will send a PR shortly
After deployment, the pods for csi-driver-lvm-plugin are unable to mount /lib/modules directory. I found it was a symlink, which should work i expect, so changed it to the full actual path to test but still hitting the same error
MountVolume.SetUp failed for volume "mod-dir" : hostPath type check failed: /usr/lib/modules is not a directory
The directory does exist on the host systems.
Versions of things: OS:
Ubuntu 20.04.1 LTS
Kubernetes:v1.19.7 ( deployed via Rancher )
Deployed using helm chart version