Skip to content

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

Open
@jacksgt

Description

@jacksgt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions