Bug 1455923
Summary: | Static IP mapping does not allow to map groups with white space such as 'domain users' | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Stefan Walter <walteste> | ||||
Component: | libnfsidmap | Assignee: | Steve Dickson <steved> | ||||
Status: | CLOSED ERRATA | QA Contact: | Yongcheng Yang <yoyang> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.3 | CC: | agaikwad, ajmitchell, baumanmo, cww, dwysocha, fsorenso, mthacker, smayhew, steved, swhiteho, walteste, xzhou, yoyang | ||||
Target Milestone: | rc | Keywords: | OtherQA | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | libnfsidmap-0.25-19.el7 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-04-10 18:51:32 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1420851, 1469559 | ||||||
Attachments: |
|
Description
Stefan Walter
2017-05-26 12:49:17 UTC
Patch series which merges libnfsidmap into nfs-utils, thus fixing the white space parsing issue. http://www.spinics.net/lists/linux-nfs/msg65539.html Can you check with Steve D how to get this fixed, since we are running out of time for doing larger changes in 7.5 now. Since this is on the RPL we need to move this bug on, or agree to defer to 7.6 at this stage. (In reply to Justin Mitchell from comment #7) > Patch series which merges libnfsidmap into nfs-utils, thus fixing the white > space parsing issue. > > http://www.spinics.net/lists/linux-nfs/msg65539.html I was just thinking about this... I don't think we can put these patches in to merge libnfsidmap into nfs-utils because it changes the RHEL ABI. Packages that are now dependent on libnfsidmap will have to change to nfs-utils which I don't think is legal in a RHEL update release. So I'm thinking this merge will have to be a RHEL8 thing. The merge should probably start in Fedora. Wit that said... I guess we just need to pull in the patches that fix this bug. These patches only need to merge the two SRPMS into one, it can still output two separate binary RPMS with the existing names. If libnfsidmap is listed as a subpackage within the nfs-utils spec file but with a non-derivate (-n) %package name. The ABI stays exactly the same, the RPM filenames stay the same, even the dependencies would stay the same, only difference is the SRPM they came from. If you can point me at where you keep the spec file for nfs-utils I am happy to make the changes for you to test. (In reply to Justin Mitchell from comment #11) > These patches only need to merge the two SRPMS into one, it can still output > two separate binary RPMS with the existing names. If libnfsidmap is listed > as a subpackage within the nfs-utils spec file but with a non-derivate (-n) > %package name. > > The ABI stays exactly the same, the RPM filenames stay the same, even the > dependencies would stay the same, only difference is the SRPM they came from. > > If you can point me at where you keep the spec file for nfs-utils I am happy > to make the changes for you to test. fedpkg clone nfs-utils for fedora rhpkg clone nfs-utils for rhel *** Bug 1498210 has been marked as a duplicate of this bug. *** Created attachment 1352845 [details]
Alternative patch with minimal rewrite
This is a minimal rewrite of the config parser code which should fix the whitespace issue without adding in any of the newer features that the nfs-utils version contains, like quoted strings or section arguments.
(In reply to Justin Mitchell from comment #21) > Created attachment 1352845 [details] > Alternative patch with minimal rewrite > > This is a minimal rewrite of the config parser code which should fix the > whitespace issue without adding in any of the newer features that the > nfs-utils version contains, like quoted strings or section arguments. Unfortunately does not apply to the latest version in libnfsidmap Will take a quick look... Under http://people.redhat.com/steved/.bz1455923/ I put an rpm that has Justin backported patch which I believe takes care of the problem... would it be possible to verify this? (In reply to Steve Dickson from comment #22) > (In reply to Justin Mitchell from comment #21) > > Created attachment 1352845 [details] > > Alternative patch with minimal rewrite > > > > This is a minimal rewrite of the config parser code which should fix the > > whitespace issue without adding in any of the newer features that the > > nfs-utils version contains, like quoted strings or section arguments. > > Unfortunately does not apply to the latest version in libnfsidmap > Will take a quick look... Odd, I based it on my checkout of the libnfsidmap git tree, head of which was ba7daeb, which i couldnt update as you have now removed/locked the origin. I tried the libnfsidmap-0.25-18.el7 RPM with the following idmapd.conf [Translation] Method = static, nsswitch [Static] domain users = users domain users = users domain users.ch = users Didn't work and I found the following log entry: Nov 28 11:31:01 muster nfsidmap[1674]: static_getpwnam: localname 'users' for 'domain' not found Nov 28 11:31:01 muster nfsidmap[1674]: key: 0x2a5369b0 type: gid value: domain users.ch timeout 600 Nov 28 11:31:01 muster nfsidmap[1674]: nfs4_name_to_gid: calling static->name_to_gid Nov 28 11:31:01 muster nfsidmap[1674]: nfs4_name_to_gid: static->name_to_gid returned -2 Nov 28 11:31:01 muster nfsidmap[1674]: nfs4_name_to_gid: calling regex->name_to_gid The '... static_getpwnam: localname 'users' ...' looks strange to me in the context of a group lookup. Can I have the SRPM for ibnfsidmap-0.25-18.el7 to debug? For the SRPMs that I can find, -18 had the patch file but it was empty, -19 contains the fix properly. Thank Justin for the clarification. Hi Steve, would you please help to share libnfsidmap-0.25-19.el7 out? (In reply to Stefan Walter from comment #26) > > The '... static_getpwnam: localname 'users' ...' looks strange to me in the > context of a group lookup. Can I have the SRPM for ibnfsidmap-0.25-18.el7 to > debug? I just updated the rpms under http://people.redhat.com/steved/.bz1455923/ Please give them another try... Thank you! Just tried libnfsidmap-0.25-19.el7 and with the following sections I get 'domain users' mapped to the local 'users' group: [Static] D\domain users = users [Translation] Method = static, nsswitch Seems to work! (In reply to Stefan Walter from comment #30) > Just tried libnfsidmap-0.25-19.el7 and with the following sections I get > 'domain users' mapped to the local 'users' group: > > [Static] > D\domain users = users > > [Translation] > Method = static, nsswitch > > Seems to work! Thank you! Moving to VERIFIED according to comment #30. Thanks for your help! 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-2018:1016 |