RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1969210 - autofs: already mounted as other than autofs or failed to unlink entry in tree
Summary: autofs: already mounted as other than autofs or failed to unlink entry in tree
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: autofs
Version: 8.4
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: beta
: ---
Assignee: Ian Kent
QA Contact: Kun Wang
URL:
Whiteboard:
Depends On:
Blocks: 1973888
TreeView+ depends on / blocked
 
Reported: 2021-06-08 01:39 UTC by Ling Li
Modified: 2021-11-10 07:16 UTC (History)
2 users (show)

Fixed In Version: autofs-5.1.4-71.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1973888 (view as bug list)
Environment:
Last Closed: 2021-11-09 19:32:44 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch - fix empty mounts list return from unlink_mount_tree() (1.52 KB, patch)
2021-06-08 03:22 UTC, Ian Kent
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4372 0 None None None 2021-11-09 19:32:58 UTC

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


Note You need to log in before you can comment on or make changes to this bug.