Bug 1969210

Summary: autofs: already mounted as other than autofs or failed to unlink entry in tree
Product: Red Hat Enterprise Linux 8 Reporter: Ling Li <liling>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED ERRATA QA Contact: Kun Wang <kunwan>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 8.4CC: dwysocha, xzhou
Target Milestone: betaKeywords: Regression, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: autofs-5.1.4-71.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1973888 (view as bug list) Environment:
Last Closed: 2021-11-09 19:32:44 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: 1973888    
Attachments:
Description Flags
Patch - fix empty mounts list return from unlink_mount_tree() none

Description Ling Li 2021-06-08 01:39:55 UTC
Description of problem:
After upgrading from CentOS 8.3 to 8.4, autofs fails on NFS /home mounting, complaining:

Jun 08 01:32:16 cent8 automount[1502]: do_mount_autofs_indirect: already mounted as other than autofs or failed to unlink entry in tree
Jun 08 01:32:16 cent8 automount[1502]: handle_mounts: mount of /home failed!
Jun 08 01:32:16 cent8 automount[1502]: master_do_mount: failed to startup mount

If downgrade the autofs package only, to 5.1.4-43, solves the problem.


Version-Release number of selected component (if applicable):

autofs-5.1.4-48.el8.x86_64


How reproducible:

A clean install, set up sssd/ldap, start autofs.


Additional info:

If, I manually mount a subdirectory of /home, say 

  mkdir /home/myself
  mount -t nfs nfs_server:/zones/home/myself /home/myself
  systemctl restart autofs

it magically stops complaining (for this time), and automount works on other subdirectories under /home.

Comment 1 Ian Kent 2021-06-08 03:17:52 UTC
It seems there's a missing patch, I was so sure I had fixed that in RHEL
but clearly not.

Comment 2 Ian Kent 2021-06-08 03:22:45 UTC
Created attachment 1789305 [details]
Patch - fix empty mounts list return from unlink_mount_tree()

fyi - upstream patch is.

Comment 3 Ian Kent 2021-06-08 06:36:41 UTC
Just to be sure, could you try this build and ensure the problem
is resolved please:
http://people.redhat.com/~ikent/autofs-5.1.4-71.el8/

Comment 4 Ling Li 2021-06-08 15:28:50 UTC
Yes, that solved the issue.  Tried on two different installs (one container and one actual box).  Thank you!

Comment 12 errata-xmlrpc 2021-11-09 19:32:44 UTC
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 (autofs bug fix and enhancement update), 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-2021:4372