Skip to content

Fix CSI Driver installation on Gardener Linux clusters with read-only /usr filesystem #2067

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 9, 2025

Problem

The Azure Blob Storage CSI driver fails to install on Gardener Linux clusters because the /usr filesystem is mounted as read-only, but the installation script attempts to copy the blobfuse-proxy binary to /host/usr/bin/blobfuse-proxy.

The error encountered is:

cp: cannot create regular file '/host/usr/bin/blobfuse-proxy': Read-only file system

Solution

This PR fixes the issue by modifying pkg/blobfuse-proxy/init.sh to handle gardenlinux distribution the same way as rhcos, which already has a solution for read-only /usr filesystems.

The change is minimal - adding gardenlinux to the existing case statement that uses the RHCOS installation script:

case "${DISTRIBUTION}" in
-  "rhcos")
+  "rhcos"|"gardenlinux")
    . ./blobfuse-proxy/install-proxy-rhcos.sh
    ;;

Key Differences

Script Binary Location Service Location Gardener Linux
install-proxy.sh (default) /host/usr/bin/blobfuse-proxy /host/usr/lib/systemd/system/ ❌ Fails (read-only)
install-proxy-rhcos.sh (fix) /host/usr/local/bin/blobfuse-proxy /host/etc/systemd/system/ ✅ Works (writable)

Impact

  • Before: gardenlinuxinstall-proxy.sh → installs to /usr/bin (read-only) → FAILS
  • After: gardenlinuxinstall-proxy-rhcos.sh → installs to /usr/local/bin (writable) → WORKS

Testing

  • ✅ Unit tests pass
  • ✅ Build completes successfully
  • ✅ Distribution case logic verified for gardenlinux, rhcos, ubuntu, centos
  • ✅ Existing distributions continue to work as before
  • ✅ No breaking changes introduced

This fix ensures that Gardener Linux clusters can successfully install and run the Azure Blob Storage CSI driver without requiring filesystem modifications.

Fixes #1645.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 9, 2025
Copy link

linux-foundation-easycla bot commented Jul 9, 2025

CLA Missing ID CLA Not Signed

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 9, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @Copilot. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 9, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Copilot
Once this PR has been reviewed and has the lgtm label, please ask for approval from andyzhangx. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Copilot
Once this PR has been reviewed and has the lgtm label, please ask for approval from andyzhangx. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Copilot Copilot AI changed the title [WIP] CSI Driver installation failed because of ro /usr Fix CSI Driver installation on Gardener Linux clusters with read-only /usr filesystem Jul 9, 2025
@Copilot Copilot AI requested a review from andyzhangx July 9, 2025 12:45
Copilot finished work on behalf of andyzhangx July 9, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSI Driver installation failed because of ro /usr
3 participants