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 815673 - NFS4 mounts hang on clients with many exports to netgroups
Summary: NFS4 mounts hang on clients with many exports to netgroups
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nfs-utils
Version: 6.2
Hardware: All
OS: Linux
urgent
high
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Rock Lee
URL:
Whiteboard:
Depends On:
Blocks: 841668
TreeView+ depends on / blocked
 
Reported: 2012-04-24 08:32 UTC by Stefan Walter
Modified: 2018-12-01 18:28 UTC (History)
9 users (show)

Fixed In Version: nfs-utils-1.2.3-29
Doc Type: Bug Fix
Doc Text:
Cause: regression due to the commit 0509d3428f523 Consequence: NFS4 mounts hang on clients with many exports to netgroups Fix: Upstream commit b46c0442 mountd: fix export upcall failure in use_ipaddr case Result: nfsv4 mount now work
Clone Of:
Environment:
Last Closed: 2013-02-21 10:55:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 116563 0 None None None Never
Red Hat Product Errata RHBA-2013:0468 0 normal SHIPPED_LIVE nfs-utils bug fix update 2013-02-20 21:07:08 UTC

Description Stefan Walter 2012-04-24 08:32:48 UTC
Description of problem:

When an NFS server has many exports to netgroups a client may fail to mount a share with NFS4 (the mount command will hang indefinitely).

When I run rpc.mountd with '-d all' and use the reproducer below I get the following output:

rpc.mountd: v4root_create: path '/'
rpc.mountd: v4root_create: path '/export'
rpc.mountd: v4root_create: path '/'
rpc.mountd: v4root_create: path '/export'
rpc.mountd: v4root_create: path '/export/test2'
...
rpc.mountd: v4root_create: path '/export'
rpc.mountd: v4root_create: path '/export/test2'
rpc.mountd: v4root_create: path '/'
rpc.mountd: v4root_create: path '/export'
rpc.mountd: auth_unix_ip: client (nil) 'DEFAULT'
rpc.mountd: nfsd_fh: inbuf '129.132.10.7 1 \x00000000'
rpc.mountd: nfsd_fh: found 0x213d5f0 path /
rpc.mountd: nfsd_export: inbuf '129.132.10.7 /export'

Additionally here is the content of the various pipes when the above mount fails:

# cat /proc/net/rpc/nfsd.fh/content
#domain fsidtype fsid [path]
129.132.10.7 1 0x00000000 /
# cat /proc/net/rpc/nfsd.export/channel 
129.132.10.7 /export
129.132.10.7 /export
# cat /proc/net/rpc/nfsd.export/content 
#path domain(flags)
# /export	129.132.10.7()
/	129.132.10.7(ro,root_squash,sync,no_wdelay,no_subtree_check,v4root,fsid=0,uuid=2e8bd014:febf431f:a2127b34:4f1fcb95)
# cat /proc/net/rpc/nfsd.export/flush 
1335255591

Version-Release number of selected component (if applicable):

nfs-utils-1.2.3-15.el6.x86_64
kernel-2.6.32-220.13.1.el6.x86_64

This happens both with the stock nfs-utils package as well with a modified package that incorporates the patches from BZ 797209 and BZ 812364.


How reproducible:

Always.


Steps to Reproduce:

Requires an up-to-date RHEL 6.2 server and client.

1. Create /export/test1 and /export/test2 on the server

2. Create /etc/exports with the following content:

/export/test1 *(rw,async,no_root_squash,no_subtree_check,fsid=99999)

3. Optionally configure 1000 netgroups named 1 to 1000 and populate them with some host triplets. This is not needed to reproduce the bug though.

4. Restart the nfs service or boot the system.

5. Add 1000 exports to netgroups by running

for i in `seq 1 1000`; do mkdir -p /export/test2/$i ; exportfs -o
rw,async,no_root_squash,no_subtree_check,fsid=19898$i @$i:/export/test2/$i ;
done

6. On the client try to mount /export/test1 from the server with NFS4. This will not succeed.


Additional info:

The problem is probably related to the one of BZ 797209 and BZ 812364 which are for NFS3.

Comment 2 RHEL Program Management 2012-05-06 04:04:14 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 8 yanfu,wang 2012-07-06 02:47:47 UTC
ack it, reproducer could be found in comment #0 and comment #3.

Comment 13 errata-xmlrpc 2013-02-21 10:55:18 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.

http://rhn.redhat.com/errata/RHBA-2013-0468.html


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