Summary: | After autofs service is restarted, "problem reading master map, maximum wait exceeded" message is logged. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Gaurav <gkulkarn> |
Component: | autofs | Assignee: | Ian Kent <ikent> |
Status: | CLOSED WONTFIX | QA Contact: | xiaoli feng <xifeng> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.9 | CC: | cww, eguan, ikent, kladiv, xifeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-15 21:33:12 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: |
Description
Gaurav
2017-04-04 08:42:22 UTC
This looks like a side effect of a change that was included in RHEL-6.9. I was a bit concerned we might see this but it is an unavoidable consequence of change that fixed a problem and some noise in the log seemed reasonable since there was no other choice. If in fact this is what I think it is then it is caused by not setting the sources in /etc/nsswitch.conf properly. Previously autofs was not sensitive to unconfigured map sources listed in the automount entry of nsswitch.conf. In order to implement a delay when map sources are not yet ready to reply, such as when the network is up but the source is not yet ready to answer queries, it's necessary to wait and retry upon receiving an error. But if nsswitch.conf contains sources that are unused (and not configured) an error is returned and it can't be distinguished from a real error. So the requirement now is that nsswitch.conf should be properly configured and unused map sources removed. The plus map inclusion line in /etc/auto.master will look for master map entries in the map sources listed in the nsswitch.conf automount line. From the sosreport I see that the automount line in nsswitch.conf contains "files nisplus" which is the default when it is installed and I presume nisplus is not used or setup at this site. The nsswitch.conf file is not owned by the autofs package and I don't think it's wise to change the automount line on update but perhaps it should be set to a sensible default by autofs on initial install. This value in nsswitch.conf has been the default for a long time and IMHO is not a sensible one. But first lets confirm this is what is happening. That can be done by removing nisplus from the automount line in nsswitch.conf. Thanks for your reply Ian. It worked. On my test system, modified the entry in /etc/nsswitch.conf to : automount: files The logs are not seen now. Let me check with the customer as well. It worked for the customer as well. So are we planning to remove "nisplus" for automount in nsswitch.conf in upcoming autofs package ? (In reply to Gaurav from comment #4) > It worked for the customer as well. > > So are we planning to remove "nisplus" for automount in nsswitch.conf in > upcoming autofs package ? The reason it is still there is purely because the file isn't owned by autofs. It's owned by glibc. As I said above I'd consider altering it at autofs initial install but even then the automount line might have been changed by users and autofs can't know if that's the case. So it's difficult. Ian Hello, we still found this bug on: autofs-5.0.5-133.el6_9.x86_64 and automounts (NFS) seems not working. Our workaround is to change /etc/nsswitch.conf to: automount: files Why bug has flagged WONFTIX? Regards, Claudio |