Skip to content

Conversation

@gman0
Copy link
Collaborator

@gman0 gman0 commented Oct 6, 2023

The directory was created in all cvmfs-csi components (including controllerplugin), because the MkdirAll was called in init() function. This breaks deployments that don't run controllerplugin as root. It doesn't have perms to create the directory, and init() exits with panic().

This commit fixes that by separating the directory creation into another function.

Cherry-pick cabfc11 (#127)

The directory was created in all cvmfs-csi components (including
controllerplugin), because the MkdirAll was called in init() function.
This breaks deployments that don't run controllerplugin as root.
It doesn't have perms to create the directory, and init() exits
with panic().

This commit fixes that by separating the directory creation into
another function.

Cherry-pick cabfc11 (cvmfs-contrib#127)
@gman0 gman0 merged commit 37417ae into cvmfs-contrib:release-2.3 Oct 6, 2023
@gman0 gman0 changed the title (Backport #127) sharedmount: create metadata dir only when running sharedmount-runner (Backport #127) singlemount: create metadata dir only when running singlemount-runner Oct 9, 2023
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

Successfully merging this pull request may close these issues.

1 participant