Skip to content

Conversation

andyzhangx
Copy link
Member

@andyzhangx andyzhangx commented Aug 9, 2025

What type of PR is this?
/kind bug

What this PR does / why we need it:
fix: support blobfuse2 install for GKE cos node

on GKE cos node, we should set following mount option for blobfuse volume due to error failed to create default work dir [mkdir /.blobfuse2: read-only file system]:

    - --default-working-dir=/home/mnt
    - --tmp-path=/home/mnt

Which issue(s) this PR fixes:

Fixes #2109, #1645, #2113

Requirements:

Special notes for your reviewer:

Release note:

none

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 9, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx

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

The pull request process is described 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

@k8s-ci-robot k8s-ci-robot requested review from cvvz and feiskyer August 9, 2025 14:49
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 9, 2025
@andyzhangx andyzhangx requested a review from Copilot August 9, 2025 14:49
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 9, 2025
@andyzhangx andyzhangx removed request for cvvz and feiskyer August 9, 2025 14:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes blobfuse2 installation support for Google Kubernetes Engine (GKE) Container-Optimized OS (COS) nodes by adding COS-specific handling to the installation scripts.

  • Adds COS distribution detection and routing to the RHCOS installation script
  • Configures COS-specific binary installation path (/home/kubernetes/bin)
  • Fixes variable quoting issues in shell scripts for better robustness

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pkg/blobfuse-proxy/install-proxy.sh Fixes variable quoting for KUBELET_PATH
pkg/blobfuse-proxy/install-proxy-rhcos.sh Adds COS support with configurable binary path and fixes variable quoting
pkg/blobfuse-proxy/init.sh Routes COS distribution to use RHCOS installation script

@andyzhangx
Copy link
Member Author

/retest

@andyzhangx
Copy link
Member Author

/retest

@imranrazakhan
Copy link

@andyzhangx Can we merge it to master?

@andyzhangx andyzhangx merged commit b4be0c6 into kubernetes-sigs:master Aug 18, 2025
21 of 22 checks passed
@andyzhangx
Copy link
Member Author

/cherrypick release-1.26

@k8s-infra-cherrypick-robot

@andyzhangx: new pull request created: #2132

In response to this:

/cherrypick release-1.26

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.

Comment on lines +58 to +59
if [ -f "/host/${BIN_PATH}/blobfuse-proxy" ];then
old=$(sha256sum /host/${BIN_PATH}/blobfuse-proxy | awk '{print $1}')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bin path already contains /
this causes double / like: /host//home/kubernetes/bin/...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's ok, it should work on Linux, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i tested it and that works, although it is ugly.
problem is that /host is not mounted on the init container, so none of the custom paths can work:
https://github.com/kubernetes-sigs/blob-csi-driver/blob/master/charts/latest/blob-csi-driver/templates/csi-blob-node.yaml#L110

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can mount /home/kubernetes/bin and /var/bin for cos and gardenlinux and introduce additional mounts for when a custom bin path is required, so that we don't expose the entire /host? wdyt @andyzhangx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

install-blobfuse-proxy init-container fails on GKE/COS nodes due to read-only filesystem

5 participants