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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] RWX volume supports different NFS version (4.2) and mount options #7638
Comments
Varying the mount options is already an option, simply by using nfsOptions="vers=4.2,hard,etc..." in the parameters for the volume's storage class. This seems as simple as changing the defaultOptions to use "vers=4.2" in csi/node_server.go". Note that there is still the possibility of overriding with 4.1 in the nfsOptions if desired. Note also that NFS backupstore, if not overridden in the settings, uses a default of nfs4.2 already, with fallback attempts at 4.1 and 4.0 if unsuccessful. But there is no such fallback path for RWX volume mounts. |
I see. Can you help update the RWX doc https://longhorn.io/docs/1.6.0/advanced-resources/rwx-workloads/ for the mount options? Thank you. |
Base ticket for the feature change to NFS mounts for RWX volumes is #6655 I'll look over the docs as well. I see some of that was addressed in longhorn/website#777 |
I created #7716 to cover the docs improvement, so this can be expedited on its own. |
Pre Ready-For-Testing Checklist
|
This is reasonable to backport. All current releases use nfs-ganesha that supports v4.2. |
@james-munson https://github.com/longhorn/longhorn-tests/blob/master/manager/integration/tests/test_rwx.py |
I do not understand what is being asked for here. Guessing that it is to add regression test cases with specific overrides. |
If you check https://github.com/longhorn/longhorn-tests/blob/master/manager/integration/tests/test_rwx.py, you can find it only test NFS v4.1. You can add test v4.2 as well by a StorageClass with different mount options. |
@james-munson Please do what @derekbit suggested. Need to have e2e tests in 4.2 as well. |
In fact, it now tests 4.2 when run on 1.6.x, master, or any release for which 4.2 is the default. But I take your point that there should be some test cases that test nfsOptions overrides explicitly, for non-default NFS versions. Assigning #7639 to myself. |
This issue has been superseded by #7741 which reverts the default to vers=4.1. It can be closed when that one is committed. |
Is your feature request related to a problem? Please describe (馃憤 if you like this request)
Currently, RWX volume is based on NFS v4.1 protocol. Some new features such as sparse files, file pre-allocation, server-side clone and copy and application data block (ADB) are introduced in v4.2.
The feature request aims to support both v4.1 and 4.2 as well as customized mount options.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
cc @james-munson
The text was updated successfully, but these errors were encountered: