Bug 1284079
| Summary: | nfs-utils 1.3.3-1 breaks exports using netgroups | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Richard Neuboeck <hawk> | ||||
| Component: | nfs-utils | Assignee: | Frank Sorenson <fsorenso> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 22 | CC: | bcodding, bfields, fsorenso, jlayton, steved | ||||
| Target Milestone: | --- | Keywords: | Patch, Regression | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-03-17 12:15:56 UTC | Type: | Bug | ||||
| 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
Richard Neuboeck
2015-11-20 18:12:27 UTC
I wonder if this patch is causing the problem
commit 9a92ef6f194926904b1289e0ce1daecb42bd5e8b
Author: Frank Sorenson <sorenson>
Date: Mon Nov 2 08:31:29 2015 -0500
mountd: fix netgroup lookup for resolvable IP addresses
Yes it is. I removed this patch from nfs-utils-1.3.4-rc1.patch and rebuilt the rpm for Fedora 22 x86_64. Mounting exports that rely on netgroups work again. I believe the problem is in the placement of the new lines before the "Okay, strip off the domain" section (to test "hostname.domain" as just "hostname"). That section needs the 'hname' unmodified, so changing it in the new IP address check code broke the lookup. I will look into a fix to make both work, most likely using another scratch string in the new IP check so that hname doesn't get blown away. Created attachment 1105747 [details]
patch to fix the regression
Commit 9a92ef6f194926904b1289e0ce1daecb42bd5e8b to add netgroup
lookup of resolvable IP addresses inadvertently broke the
netgroup check for short hostnames by clobbering the 'hname'
variable.
This patch fixes that breakage by changing the IP address
lookup to use a separate variable. The 'hname' variable
used in the short hostname lookup is now untouched in
the IP lookup code.
Upstream commit
commit 4b5bd85481a45957122357feebfcd514550fc219
Author: Frank Sorenson <sorenson>
Date: Wed Dec 16 10:12:38 2015 -0500
mountd: fix netgroup lookup for short hostnames
Commit 9a92ef6f to add netgroup lookup of resolvable
IP addresses inadvertently broke the netgroup
check for short hostnames.
This patch fixes that breakage by changing the IP address
lookup to use a separate variable.
Signed-off-by: Frank Sorenson <sorenson>
Signed-off-by: Steve Dickson <steved>
|