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 PR fixes that by separating the directory creation into another function.

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.
@gman0 gman0 force-pushed the singlemount-create-dir-fix branch from 6973055 to 463a16d Compare October 6, 2023 16:02
@gman0 gman0 merged commit e18bd3c into cvmfs-contrib:master Oct 6, 2023
gman0 added a commit to gman0/cvmfs-csi that referenced this pull request 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 (cvmfs-contrib#127)
gman0 added a commit that referenced this pull request Oct 6, 2023
(Backport #127) sharedmount: create metadata dir only when running sharedmount-runner
@gman0 gman0 changed the title sharedmount: create metadata dir only when running sharedmount-runner 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