RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1710532 - [bat] nfs.conf rdma setting not implemented
Summary: [bat] nfs.conf rdma setting not implemented
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nfs-utils
Version: 8.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.0
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-15 17:21 UTC by Benjamin Coddington
Modified: 2020-04-28 16:51 UTC (History)
6 users (show)

Fixed In Version: nfs-utils-2.3.3-27.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 16:51:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1832 0 None None None 2020-04-28 16:51:25 UTC

Description Benjamin Coddington 2019-05-15 17:21:47 UTC
/etc/nfs.conf:

[nfsd]
 rdma=y

Has no effect, the result is that there's no persistent way to enable RDMA service for NFS.  It looks like /etc/nfs.conf is a template, and we've removed /etc/sysconfig/nfs functionality.  All the commented out settings need to be tested.  This one, at least was never implemented.

It would make sense to not add commented-out defaults that don't have an un-commented implementation.

Comment 1 Yongcheng Yang 2019-05-16 01:56:22 UTC
Reading from the "nfsd" man page, we are using "rdma=nfsrdma" to config rdma.
------------------------------------------------------------------
# rpm -q nfs-utils
nfs-utils-2.3.3-14.el8_0.x86_64
# man nfsd | grep "Set RDMA port"
       rdma   Set RDMA port.  Use "rdma=nfsrdma" to enable standard port.
------------------------------------------------------------------

We already have testcase to cover this config, maybe need to improve checking more values.

https://beaker.engineering.redhat.com/recipes/6860717#task92692165
------------------------------------------------------------------
# {Info} Apply configuration settings to /etc/nfs.conf
[06:57:06 root@ ~~]# cat /etc/nfs.conf
[nfsd]
rdma=nfsrdma
[06:57:06 root@ ~~]# rpc.nfsd
[06:57:06 root@ ~~]# cat /proc/fs/nfsd/portlist | grep -w rdma
rdma 20049
rdma 20049
[06:57:06 root@ ~~]# rpc.nfsd 0
[06:57:06 root@ ~~]# >/etc/nfs.conf
------------------------------------------------------------------

In nfs.conf, the "rdma=n" does make users confusing.

Comment 4 Steve Dickson 2019-09-17 11:55:07 UTC
Upstream commit...

commit 0240df0e8ccf7be2706a6a10a2a620f8eda55275
Author: Yongcheng Yang <yongcheng.yang>
Date:   Thu Sep 5 07:36:26 2019 -0400

    nfsd: Adjust nfs.conf setting/parsing of rdma port

Comment 6 Yongcheng Yang 2019-12-02 08:09:25 UTC
Verified in nfs-utils-2.3.3-27.el8
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
https://beaker.engineering.redhat.com/recipes/7637495#task103017310
--------------------------------------------------------------------
# check "rdma=BOOLEAN"
[06:40:31 root@ ~~]# cat /etc/nfs.conf
[nfsd]
rdma=yes
[06:40:31 root@ ~~]# rpc.nfsd
[06:40:31 root@ ~~]# cat /proc/fs/nfsd/portlist | grep -w rdma
rdma 20049
rdma 20049
[06:40:31 root@ ~~]# rpc.nfsd 0
[06:40:31 root@ ~~]# systemctl reset-failed
[06:40:31 root@ ~~]# service_nfs restart
Redirecting to /bin/systemctl restart nfs-server.service
[06:40:31 root@ ~~]# cat /proc/fs/nfsd/portlist | grep -w rdma
rdma 20049
rdma 20049

# check "rdma-port="
[06:40:56 root@ ~~]# cat /etc/nfs.conf
[nfsd]
rdma=1   <<< Any of true, t, yes, y, on, or 1 can be used for "true"
rdma-port=45678
[06:40:56 root@ ~~]# rpc.nfsd
[06:40:56 root@ ~~]# cat /proc/fs/nfsd/portlist | grep -w rdma
rdma 45678
rdma 45678
[06:40:56 root@ ~~]# rpc.nfsd 0
[06:40:56 root@ ~~]# systemctl reset-failed
[06:40:56 root@ ~~]# service_nfs restart
Redirecting to /bin/systemctl restart nfs-server.service
[06:40:56 root@ ~~]# cat /proc/fs/nfsd/portlist | grep -w rdma
rdma 45678
rdma 45678

Comment 8 errata-xmlrpc 2020-04-28 16:51:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1832


Note You need to log in before you can comment on or make changes to this bug.