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

Change nfs-client to network-fs-clients #37

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

jacobshivers
Copy link
Contributor

@jacobshivers jacobshivers commented Oct 23, 2021

Proposed patches for cifs.upcall extending the binary to leverage gssapi have been slated for inclusion into cifs-utils. A drop file for gssproxy is needed to go along with the patch. The drop file is a near match for nfs-client with the difference in the "program" option. Both cifs-client and nfs-client can use the same default socket, but the configuration files need to be distinguished otherwise gssproxy will not start.

Proposing "cifs-client" drop file to go along with patches and modifying the existing "nfs-client" drop file so that it can continue to work.

Link for cifs.upcall patch as discussed above:
piastry/cifs-utils@3d681bb

@simo5
Copy link
Contributor

simo5 commented Oct 25, 2021

@jacobshivers Is there any difference between configuration files other than the program option ?

@jacobshivers
Copy link
Contributor Author

@simo5 No, there are no other differences for nfs-client than adding the program option. cifs-client is a near copy of nfs-client, but with a different program. This avoids having to maintain a separate socket for cifs-client, which while possible is not necessary.

@simo5
Copy link
Contributor

simo5 commented Oct 25, 2021

Then why not simply rename the file to network-fs-clients.conf and use the same file for both cifs and nfs?
It is quite likely that the default case is to have the same config for both.
We can add documentation to show how to manually differentiate in the odd case someone want to actually have different options between the two?

@jacobshivers
Copy link
Contributor Author

That works for me. I defaulted to having them distinct, but like you mentioned, having appropriate documentation can assist those who either choose to have different requirements for different remote filesystems or want the separation for tracking purposes in gssproxy logs.

@simo5
Copy link
Contributor

simo5 commented Oct 25, 2021

Ok, can you change this PR in that direction ?

I think doc can either be a change of dcos/NFS.md or a separate document for the general idea which has a section specific to NFS vs CIFS

Doesn't need to be a lot of words, just a few sentences of: "do you need diff behavior for nfs v cifs? Remove network-fs-clients.conf and replace withe these two files" (list them with the program config option) and "then customize them at will"

@jacobshivers
Copy link
Contributor Author

Yes, I will change the direction and add some suggested doc changes.

@jacobshivers jacobshivers changed the title Add cifs-client.conf drop file Change nfs-client to network-fs-clients Oct 25, 2021
@jacobshivers
Copy link
Contributor Author

Added the changes for 99-nfs-client.conf to 99-network-fs-clients.conf and created a small md file describing how to have differentiated access for client side NFS and SMB. The only other thing I added to the new doc is a small blurb about Resource Based Constrained Delegation as some users may use that in their environment. Simply noted that as RBCD is a server side change, there are no additional steps required for gssproxy to use RBCD over CD.

@simo5
Copy link
Contributor

simo5 commented Oct 25, 2021

LGTM, can you squash all commits and add Sign-by line? (git commit -s)

@simo5 simo5 self-requested a review October 25, 2021 18:35
@simo5 simo5 added the enhancement New feature or request label Oct 25, 2021
@simo5 simo5 force-pushed the cifs-client-example branch from cbe49be to 653d631 Compare October 25, 2021 18:44
@simo5
Copy link
Contributor

simo5 commented Oct 25, 2021

@jacobshivers CI is not happy, seem like you missed to change Makefile.am, and you should probably also fix contrib/gssproxy.spec.in

@jacobshivers
Copy link
Contributor Author

I'll make those fixes

@jacobshivers
Copy link
Contributor Author

Made the requested fixes. I did not modify the line after %changelog in contrib/gssproxy.spec.in as I did not think I that was intended for me.

Update and rename 99-nfs-client.conf.in to 99-network-fs-clients.conf.in
Generalized name as this file can be used by both NFS and SMB upcall
methods, i.e. rpc.gssd and cifs.upcall respectively.

Create network_fs_clients.md. The file describes steps to have
differentiated access methods for client side NFS and SMB if needed.

Modified Makefile.am and contrib/gssproxy.spec.in for instances of
99-nfs-client.conf to 99-network-fs-clients.conf.

Signed-off-by: Jacob Shivers <jshivers@redhat.com>
@jacobshivers
Copy link
Contributor Author

Squashed everything into one commit as it makes more sense to keep everything together.

@simo5
Copy link
Contributor

simo5 commented Oct 26, 2021

LGTM

@simo5 simo5 merged commit 856b2b6 into gssapi:main Oct 26, 2021
@jacobshivers jacobshivers deleted the cifs-client-example branch March 8, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants