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

Linux kernel >= 6.6 default value of CONFIG_NFS_V4_2_READ_PLUS=y breaks nfs-ganesha < 6.2 #1188

Open
ader1990 opened this issue Oct 21, 2024 · 3 comments
Labels
Analyzing Need Info Need more information from the reporter

Comments

@ader1990
Copy link

Hello,

I opened this issue to gather all the information about an issue with Linux versions and nfs-ganesha incompatibiliy regarding writing and reading files not working correctly anymore, which is a fundamental feature.

According to torvalds/linux@9cf2744, CONFIG_NFS_V4_2_READ_PLUS is now enabled from Linux kernel 6.6 onwards.

Recently, there was a bug report on Flatcar on a possible issue with nfs-ganesha and flatcar/Flatcar#1565.

From my investigation, Flatcar Linux kernel 6.6 has the default option value for CONFIG_NFS_V4_2_READ_PLUS, which is yes = enabled. When I tried with CONFIG_NFS_V4_2_READ_PLUS=n, the issue was gone.

There is a commit 24da5c3 that just landed recently in the repo, which might fix the issue (still to be tested).

Note that this repository still needs to be updated: https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner if the commit is proven to fix the issue.

Thanks.

ader1990 added a commit to flatcar/scripts that referenced this issue Oct 22, 2024
Disable CONFIG_NFS_V4_2_READ_PLUS kernel config, as
Linux kernel >= 6.6 enabled the CONFIG_NFS_V4_2_READ_PLUS config option
by default, and nfs-ganesha version <= 6.1 is broken due to mishandling
of the read_plus operation.

See:
nfs-ganesha/nfs-ganesha@24da5c3
See: flatcar/Flatcar#1565
See: nfs-ganesha/nfs-ganesha#1188
ader1990 added a commit to flatcar/scripts that referenced this issue Oct 22, 2024
Disable CONFIG_NFS_V4_2_READ_PLUS kernel config, as
Linux kernel >= 6.6 enabled the CONFIG_NFS_V4_2_READ_PLUS config option
by default, and nfs-ganesha version <= 6.1 is broken due to mishandling
of the read_plus operation.

See:
nfs-ganesha/nfs-ganesha@24da5c3

See: flatcar/Flatcar#1565

See: nfs-ganesha/nfs-ganesha#1188
@ffilz
Copy link
Member

ffilz commented Oct 23, 2024

Any status with that fix you identified?

@ffilz ffilz added Analyzing Need Info Need more information from the reporter labels Oct 23, 2024
@ffilz
Copy link
Member

ffilz commented Oct 23, 2024

Also, we don't maintain the Kubernetes bits, so if that does need updating, please submit an issue there.

@ader1990
Copy link
Author

ader1990 commented Oct 24, 2024

Also, we don't maintain the Kubernetes bits, so if that does need updating, please submit an issue there.

Already did, and there is a PR in progress. I will test once the PR has been merged, as I cannot test if the issue gets solved in a easy manner, as that PR creates the required docker images and more:

kubernetes-sigs/nfs-ganesha-server-and-external-provisioner#152

ader1990 added a commit to flatcar/scripts that referenced this issue Oct 30, 2024
Disable CONFIG_NFS_V4_2_READ_PLUS kernel config, as
Linux kernel >= 6.6 enabled the CONFIG_NFS_V4_2_READ_PLUS config option
by default, and nfs-ganesha version <= 6.1 is broken due to mishandling
of the read_plus operation.

See:
nfs-ganesha/nfs-ganesha@24da5c3

See: flatcar/Flatcar#1565

See: nfs-ganesha/nfs-ganesha#1188
ader1990 added a commit to flatcar/scripts that referenced this issue Oct 30, 2024
Disable CONFIG_NFS_V4_2_READ_PLUS kernel config, as
Linux kernel >= 6.6 enabled the CONFIG_NFS_V4_2_READ_PLUS config option
by default, and nfs-ganesha version <= 6.1 is broken due to mishandling
of the read_plus operation.

See:
nfs-ganesha/nfs-ganesha@24da5c3

See: flatcar/Flatcar#1565

See: nfs-ganesha/nfs-ganesha#1188
ader1990 added a commit to flatcar/scripts that referenced this issue Oct 30, 2024
Disable CONFIG_NFS_V4_2_READ_PLUS kernel config, as
Linux kernel >= 6.6 enabled the CONFIG_NFS_V4_2_READ_PLUS config option
by default, and nfs-ganesha version <= 6.1 is broken due to mishandling
of the read_plus operation.

See:
nfs-ganesha/nfs-ganesha@24da5c3

See: flatcar/Flatcar#1565

See: nfs-ganesha/nfs-ganesha#1188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analyzing Need Info Need more information from the reporter
Projects
None yet
Development

No branches or pull requests

2 participants