Repository navigation
Conversation
|
This is an artifact of the ganesha.conf used by the rook deployments where a k8s cluster does not have a running rpcbind / mountd service. Many legacy deployments nautilus -> octopus will likely have this service as well as legacy NFSv3 clients that wish to access the ganesha cluster. |
|
We might also consider omitting the |
|
Improvement for the Dashboard can be made after this change:
|
Would you mind filing tracker issues for these, so they don't get lost? Thanks! |
|
nit: s/protocals/protocols/ in the git commit message (and the PR description) |
|
Ok, so you want to allow NFSv3? Why? Are you dealing with really old legacy clients? Note that even RHEL5 (with a 2.6.17-based kernel) was able to support v4.1. While it's pretty trivial to allow ganesha to accept NFSv3 RPCs, that opens a whole host of other issues that you probably ought to consider: As @mgfritch pointed out above, you also need a functioning rpcbind service (or to tell the client what ports to talk to for mountd, NLM, NSM, etc.). Those ports will also need to be exposed to the clients (may or may not be trivial, depending on orch type). If you're enabling locking too, then you probably ought to consider how this is going to work in a clustered configuration. NSM is a deeply flawed protocol that makes this difficult. You may just want to prevent multi-head ganesha deployments altogether when it's enabled. Stateful protocols like NLM are the "hard part". IOW, unless you have a really good reason to support NFSv3, it's really best avoided. |
Thanks a lot for your feedback, @jtlayton - much appreciated. This issue bubbled up as a potential regression from Nautilus to Octopus (RPM- vs. container-based deployments). Currently, Ceph Dashboard includes support for both NFSv3 and v4. We did not realize that NFSv3 support was also not implemented in the volumes/nfs module, otherwise we could have looked into removing it or at announcing its deprecation. While Linux clients are likely not a problem, I wonder if there are still legacy applications out there that don't support NFSv4? |
jtlayton
left a comment
There was a problem hiding this comment.
While Linux clients are likely not a problem, I wonder if there are still legacy applications out there that don't support NFSv4?
Not so much applications as legacy clients. Sure, there are still legacy unixes in the field (HPUX, AIX, Solaris, etc). I think Solaris has a working v4.1+ client, but the others...not so much. MS-Windows also has a v3 client, IIRC, but not a v4 one. For that though, you'll probably be better off using SMB anyway.
We can contrive use-cases all day for v3 support, but without someone specifically saying they need it (and why), I think we'll all be better off not opening this can of worms.
d6cdc1a to
2431176
Compare
|
added a few tests and input validation. this also now uses a list type for the protocols: |
agree with @jtlayton, while this PR exposes the legacy protocols, we probably should discourage their use |
bk201
left a comment
There was a problem hiding this comment.
LGTM! Thanks!
I accidentally misuse the YAML example in the PR description to test validation:
protocols: hey
And it was treated as a list of string:
Error EINVAL: Unknown protocols: {'e', 'y', 'h'}
There was a problem hiding this comment.
Print a message to use v4 instead and deprecation warning for legacy protocols.
sebastian-philipp
left a comment
There was a problem hiding this comment.
needs a docs change as well
|
you want to resurrect this PR? |
allow for the NFS protocols to be defined via a ServiceSpec Signed-off-by: Michael Fritch <[email protected]>
and caution about NFSv3 deprecation Signed-off-by: Michael Fritch <[email protected]>
|
rook and cephadm deprecate support for NFSv3 (#40008) |
allow for the NFS protocals to be defined via a ServiceSpec
Signed-off-by: Michael Fritch [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox