Bug 1086887

Summary: "key not found" in nis auto.home
Product: [Fedora] Fedora Reporter: Josh Stone <jistone>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ikent, ngaywood
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-15 01:39:16 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: 1078776    
Attachments:
Description Flags
Debug log of failed 5.1.0-0.beta1
none
Debug log of successful 5.0.8-6
none
Patch - amd lookup update lookup ldap to handle amd keys
none
Patch - amd lookup update lookup hesiod to handle amd keys
none
Patch - fix wildcard key lookup
none
Patch - check for non existent negative entries in lookup_ghost() none

Description Josh Stone 2014-04-11 18:29:22 UTC
Description of problem:
My automount map stopped working with an error in the journal like:
  key "jistone" not found in map source(s).

Version-Release number of selected component (if applicable):
autofs-5.1.0-0.beta1.fc21

How reproducible:
100%

Steps to Reproduce:
1. Try to access /home/jistone/ via nis auto.home map

Actual results:
cd: /home/jistone: No such file or directory

Expected results:
Path should be mounted and accessible.

Additional info:
It worked fine with autofs-5.0.8-6.fc21.  I verified that downgrading works again, changing nothing else on the system.

My nis maps are simple:

  # ypcat -k auto.master
  /home auto.home
  # ypcat -k auto.home
  * vhost:/home/&

Comment 1 Josh Stone 2014-04-11 18:31:20 UTC
Created attachment 885513 [details]
Debug log of failed 5.1.0-0.beta1

Comment 2 Josh Stone 2014-04-11 18:32:06 UTC
Created attachment 885514 [details]
Debug log of successful 5.0.8-6

Comment 3 Ian Kent 2014-04-11 23:48:16 UTC
OK, will check this out as sson as I get time.

Thanks for the report.
Ian

Comment 4 Ian Kent 2014-04-13 10:48:34 UTC
Created attachment 885841 [details]
Patch - amd lookup update lookup ldap to handle amd keys

Comment 5 Ian Kent 2014-04-13 10:49:42 UTC
Created attachment 885842 [details]
Patch - amd lookup update lookup hesiod to handle amd keys

Comment 6 Ian Kent 2014-04-13 10:50:38 UTC
Created attachment 885843 [details]
Patch - fix wildcard key lookup

Comment 7 Ian Kent 2014-04-13 10:51:38 UTC
Created attachment 885844 [details]
Patch - check for non existent negative entries in lookup_ghost()

Comment 8 Ian Kent 2014-04-13 11:05:48 UTC
I think this build will resolve the nis lookup problem your
seeing:
https://koji.fedoraproject.org/koji/buildinfo?buildID=510630

Can you try it and let me know how it goes please.

Comment 9 Josh Stone 2014-04-14 16:43:09 UTC
Yes, 5.1.0-0.beta1.1 is working fine, thanks!