Skip to content
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

Add node.legacyXFS parameter to fix XFS on nodes with kernel version ≤ 5.4 #2121

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

AndrewSirenko
Copy link
Contributor

@AndrewSirenko AndrewSirenko commented Aug 19, 2024

Is this a bug fix or adding new feature?

Feature

What is this PR about? / Why do we need it?

Adds workaround for customers using XFS on nodes with linux kernel version ≤ 5.4.

Warning: This option will be removed in a future release. It is a temporary workaround for users unable to immediately migrate off of older kernel versions.

Adds legacy-xfs node driver option and and node.legacyXFS helm chart parameter which formats XFS volumes with bigtime=0,inobtcount=0,reflink=0, so that they can be mounted onto nodes with linux kernel ≤ 5.4. Volumes formatted with this option may experience issues after 2038, and will be unable to use some XFS features (for example, reflinks).

What testing is done?

Created node with Linux ≤ v5.4, attempted to run stateful pod with and without legacy-xfs parameter. Volume only mounted when legacy-xfs=true.

@k8s-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 19, 2024
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 19, 2024
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 5, 2024
@AndrewSirenko AndrewSirenko changed the title WIP: Add LegacyXFSProgs parameter Add LegacyXFSProgs parameter Sep 5, 2024
@AndrewSirenko AndrewSirenko marked this pull request as ready for review September 5, 2024 13:22
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 5, 2024
@AndrewSirenko
Copy link
Contributor Author

/hold

Will test on linux 5.4 today.

But still ready for review.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 5, 2024
charts/aws-ebs-csi-driver/values.yaml Outdated Show resolved Hide resolved
pkg/driver/node_test.go Outdated Show resolved Hide resolved
charts/aws-ebs-csi-driver/values.yaml Outdated Show resolved Hide resolved
@AndrewSirenko
Copy link
Contributor Author

/unhold

Customer tested with their custom AMI, driver was functional.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 6, 2024
docs/options.md Outdated Show resolved Hide resolved
Copy link
Contributor

@ConnorJC3 ConnorJC3 left a comment

Choose a reason for hiding this comment

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

lgtm other than Elijah's one comment. Assuming that is addressed (and no further issues are reported in review), I plan to mark this PR as approved (if nobody else does so first) the evening of Tuesday 9/10.

pkg/driver/options.go Outdated Show resolved Hide resolved
@AndrewSirenko AndrewSirenko changed the title Add LegacyXFSProgs parameter Add node.legacyXFS parameter to fix XFS on nodes with kernel version ≤ 5.4 Sep 10, 2024
@torredil
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 10, 2024
@ElijahQuinones
Copy link
Contributor

/lgtm thank you !

@ConnorJC3
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ConnorJC3

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 10, 2024
@k8s-ci-robot k8s-ci-robot merged commit c14b06d into kubernetes-sigs:master Sep 10, 2024
19 checks passed
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants