Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 733616

Summary: showmount -e doesn't show all the hostnames
Product: Red Hat Enterprise Linux 6 Reporter: Bejoy C Alias <peeloos>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED DUPLICATE QA Contact: yanfu,wang <yanwang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1Keywords: Reopened
Target Milestone: rc   
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-15 18:48:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The upstream patch which fixes this issue none

Description Bejoy C Alias 2011-08-26 09:49:49 UTC
Description of problem:
If I export an NFS patch using the exportfs command and does export of the same path for multiple hosts with multiple exportfs commands, the showmount -e output shows only the hostname of the last export.

Version-Release number of selected component (if applicable):
RHEL 6.1
nfs4-acl-tools-0.3.3-5.el6.ppc64
nfs-utils-lib-1.1.5-3.el6.ppc64
nfs-utils-1.2.3-7.el6.ppc64

How reproducible:
Always

Steps to Reproduce:
1. Export a path by running 
exportfs -i -o ro,sync,insecure,no_root_squash,no_all_squash hostname1:/mynfsshare
2. Export the same path to few other hosts by running
exportfs -i -o ro,sync,insecure,no_root_squash,no_all_squash hostname2:/mynfsshare
3. Run showmount -e , the output shows only the last host to which it was exported.
/mynfspath      hostname2
Though the mount works fine from all the exported hosts.
  
Actual results:
showmount -e shows only the last hostname in the export list.

Expected results:
showmount -e should show all the hostnames to which the path has been exported.

Additional info:

Comment 2 Steve Dickson 2011-09-13 15:44:35 UTC
Created attachment 522952 [details]
The upstream patch which fixes this issue

Comment 3 Steve Dickson 2011-09-13 18:21:10 UTC

*** This bug has been marked as a duplicate of bug 726112 ***

Comment 4 Bejoy C Alias 2011-09-14 07:18:18 UTC
Does it mean that this patch will be part of next RHEL 6 update ? or how do I fix this issue ? Need to wait till next update release ? 

And I do not have access to the duplicate bug Id mentioned 726112.

Comment 5 Bejoy C Alias 2011-09-15 14:20:28 UTC
Does it mean that this patch will be part of next RHEL 6 update ? or how do I
fix this issue ? Need to wait till next update release ? 

And I do not have access to the duplicate bug Id mentioned 726112.

Comment 6 Steve Dickson 2011-09-15 18:48:07 UTC
(In reply to comment #5)
> Does it mean that this patch will be part of next RHEL 6 update ? 
Yes. The fix for this bz is scheduled for update release 6.2

> how do I fix this issue ? Need to wait till next update release ?
You can either apply this patch to your rpm:
    http://www.spinics.net/lists/linux-nfs/msg23113.html
(basically 3 lines from  insert_group() in mount.c)
or wait for the update... The beta release of 6.2 will be
out in around three weeks.

> 
> And I do not have access to the duplicate bug Id mentioned 726112.
Its because is a partner bz. If I would've realized that, I would of 
duped their bz, which would have left this one open....

*** This bug has been marked as a duplicate of bug 726112 ***