Bug 1609128
Summary: | autofs reload is unable to activate new map entries, it is autofs restart which shows new map entries. | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ashima Rawat <arawat> | |
Component: | autofs | Assignee: | Ian Kent <ikent> | |
Status: | CLOSED ERRATA | QA Contact: | Kun Wang <kunwan> | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 7.2 | CC: | arawat, ikent, kunwan, rhandlin, swhiteho, xzhou | |
Target Milestone: | rc | Keywords: | Regression | |
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | autofs-5.0.7-94.el7 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1611866 (view as bug list) | Environment: | ||
Last Closed: | 2018-10-30 11:41:29 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: | 1611866 | |||
Attachments: |
Description
Ashima Rawat
2018-07-27 05:04:28 UTC
(In reply to Ashima Rawat from comment #0) > Description of problem: > > autofs reload is unable to activate new map entries, it is autofs restart > which shows new map entries. > > There was errata released as part of Bugzilla: > https://bugzilla.redhat.com/show_bug.cgi?id=1156662 That doesn't look related at all. > > Wherein the issue got fixed in autofs-5.0.7-48.el7.x86_64.rpm. > However issue still persist when using indirect maps. > > > Version-Release number of selected component (if applicable): > RHEL 7.2 > autofs-5.0.7-83.el7.x86_64 > > > How reproducible: > > > Steps to Reproduce: > 1. exported share from nfs server as per customer environment. > 2. autofs indirect map entries as per customer's environment. > > # cat etc/auto.master > # Managed by CFEngine > /n /etc/autofs/n > > [root@rhel7u2-2 /]# cat /etc/autofs/n > algsim_sources -rw,intr,hard 10.10.188.239:/nc_algsim_sources > functionaltestdata -rw,intr,hard 10.10.188.239:/nc_func_tdata > pcni_large_files -rw,intr,hard 10.10.188.239:/nc_pcni_large_files > > 3. Reloaded autofs service: > > [root@rhel7u2-2 /]# service autofs reload > Redirecting to /bin/systemctl reload autofs.service > [root@rhel7u2-2 /]# cd /n/pcni_large_files > -bash: cd: /n/pcni_large_files: No such file or directory I'm not able to reproduce it revision 83. My setup is a little different but that shouldn't matter because the log fragment provided implies that the new master map entry is seen and mounted but the file map lookup fails to find the map key. My test map just has different mount locations, the master map entry and the map keys are the same. Lets start by providing a full debug log from startup, through reload and the mount attempt please. Also check the ownership and permissions along the path /etc/autofs/n (probably not the problem but we must check it). I might need to check the kernel too, what revision is in use here? Ian (In reply to Ian Kent from comment #4) > > > > How reproducible: > > > > > > Steps to Reproduce: > > 1. exported share from nfs server as per customer environment. > > 2. autofs indirect map entries as per customer's environment. > > > > # cat etc/auto.master > > # Managed by CFEngine > > /n /etc/autofs/n > > > > [root@rhel7u2-2 /]# cat /etc/autofs/n > > algsim_sources -rw,intr,hard 10.10.188.239:/nc_algsim_sources > > functionaltestdata -rw,intr,hard 10.10.188.239:/nc_func_tdata > > pcni_large_files -rw,intr,hard 10.10.188.239:/nc_pcni_large_files > > > > 3. Reloaded autofs service: > > > > [root@rhel7u2-2 /]# service autofs reload > > Redirecting to /bin/systemctl reload autofs.service > > [root@rhel7u2-2 /]# cd /n/pcni_large_files > > -bash: cd: /n/pcni_large_files: No such file or directory > > I'm not able to reproduce it revision 83. I have been able to identify a use case that produces the symptoms you describe. But producing it needs a much more specific procedure than described above. First in your description it's unclear if the thing that's being updated is the master map or the map used by the master map entry. Assuming it is the map used by the given master map entry and a lookup is done for the map key that is about to be added, followed by adding the key to the map and doing a map reload, then lookups for this key continue to fail as described. Ian A build of autofs that may resolve the problem here is located at: http://people.redhat.com/~ikent/autofs-5.0.7-83.bz1609128.el7/ Please test this rpm to see if it helps. Ian Created attachment 1472003 [details]
Patch - fix update_negative_cache() map source usage
Created attachment 1472214 [details]
Patch - fix update_negative_cache() map source usage (updated)
The patch has been updated.
The change to the patch is for completeness, it should make
no difference to the functionality because the matching in
map instance lookups is lazy and there is only one instance
in this case.
I will post an updated build too.
(In reply to Ian Kent from comment #9) > A build of autofs that may resolve the problem here is > located at: > http://people.redhat.com/~ikent/autofs-5.0.7-83.bz1609128.el7/ There is an updated build at the location above. Please use: autofs-5.0.7-83.bz1609128.2.el7.x86_64.rpm autofs-debuginfo-5.0.7-83.bz1609128.2.el7.x86_64.rpm autofs-5.0.7-83.bz1609128.2.el7.src.rpm for testing. Are you able to test Ian's build and let us know whether it fixes the problem? Hi Ian, customer mentioned that these test autofs packages solved the issue @ his end. Thanks Ashima Created attachment 1473241 [details]
Patch - fix update_negative_cache() map source usage (update 2)
Update CHANGELOG hunk to reflect difference between rev 83
(test revision) and current RHEL-7.6.
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:3283 |