Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run Helm chart v2.2.0 on OpenShift #88

Open
jacksgt opened this issue Jun 14, 2023 · 0 comments
Open

Unable to run Helm chart v2.2.0 on OpenShift #88

jacksgt opened this issue Jun 14, 2023 · 0 comments

Comments

@jacksgt
Copy link
Contributor

jacksgt commented Jun 14, 2023

Hi,

I'm trying to upgrade from v2.1.2 to v2.2.0 on our OKD cluster, but the controllerplugin is stuck with:

$ oc logs cvmfs-csi-controllerplugin-786ccbd9cc-vbffq -c provisioner
I0614 07:39:30.215802       1 feature_gate.go:249] feature gates: &{map[]}
I0614 07:39:30.216116       1 csi-provisioner.go:154] Version: v3.5.0
I0614 07:39:30.216144       1 csi-provisioner.go:177] Building kube configs for running in cluster...
W0614 07:39:40.217914       1 connection.go:183] Still connecting to unix:///csi/csi.sock
W0614 07:39:50.217133       1 connection.go:183] Still connecting to unix:///csi/csi.sock
W0614 07:40:00.218146       1 connection.go:183] Still connecting to unix:///csi/csi.sock
W0614 07:40:10.217237       1 connection.go:183] Still connecting to unix:///csi/csi.sock
W0614 07:40:20.217113       1 connection.go:183] Still connecting to unix:///csi/csi.sock
W0614 07:40:30.218064       1 connection.go:183] Still connecting to unix:///csi/csi.sock
W0614 07:40:40.217546       1 connection.go:183] Still connecting to unix:///csi/csi.sock
W0614 07:40:50.217479       1 connection.go:183] Still connecting to unix:///csi/csi.sock
W0614 07:41:00.217731       1 connection.go:183] Still connecting to unix:///csi/csi.sock
W0614 07:41:10.217187       1 connection.go:183] Still connecting to unix:///csi/csi.sock

$ oc logs cvmfs-csi-controllerplugin-786ccbd9cc-vbffq -c controllerplugin
panic: mkdir /var/lib/cvmfs.csi.cern.ch: permission denied

goroutine 1 [running]:
github.com/cernops/cvmfs-csi/internal/cvmfs/singlemount.init.0()
	/builds/kubernetes/storage/cvmfs-csi/internal/cvmfs/singlemount/sharedmount.go:108 +0x45

It looks like the controller plugin is trying to write into the root FS of the container image.
I wanted to mount an emptyDir at /var/lib/cvmfs.csi.cern.ch, but the Helm chart doesn't support extraVolumeMounts for the controllerplugin.plugin section (even though it's mentioned in the Helm values):

If the controllerplugin tries to write into this directory, should the Helm chart mount an emptyDir there generally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant