Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1585411

Summary: systemd.automount fails after update to 7.5 in case of missing mount point
Product: Red Hat Enterprise Linux 7 Reporter: Denis Silakov <dsilakov>
Component: systemdAssignee: David Tardon <dtardon>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: high Docs Contact:
Priority: high    
Version: 7.5CC: bbreard, bergolth, bkb, dtardon, emathis, iloginovskikh, michel.roelofs, mmatsuya, msekleta, ovasik, plambri, R.Eggermont, systemd-maint-list
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-219-69.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1729231 (view as bug list) Environment:
Last Closed: 2020-03-31 20:02:09 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: 1729231    

Description Denis Silakov 2018-06-02 14:24:14 UTC
Description of problem:
x-systemd.automount entry in /etc/fstab stopped working after update from 7.4 to 7.5 in case when mount point does.nt exist.

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

How reproducible:
Always

Steps to Reproduce:
# echo tmpfs /mnt/auto.test tmpfs defaults,noauto,x-systemd.automount 0 0 >> /etc/fstab
# systemctl daemon-reload
# rm -rf /mnt/auto.test
# systemctl start mnt-auto.test.automount
Job for mnt-auto.test.automount failed. See "systemctl status mnt-auto.test.automount" and "journalctl -xe" for details.
# systemctl status mnt-auto.test.automount
● mnt-auto.test.automount
   Loaded: loaded (/etc/fstab; bad; vendor preset: disabled)
   Active: inactive (dead)
    Where: /mnt/auto.test
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)

May 29 13:06:03 vm systemd[1]: Path /mnt/auto.test is already a mount point, refusing start for mnt-auto.test.automount
May 29 13:06:03 vm systemd[1]: Failed to set up automount mnt-auto.test.automount.

Actual results:
mnt-auto.test.automount unit is in failed state.

Expected results:
mnt-auto.test.automount is active.

Additional info:

Worked fine in 7.4, seems to become broken in systemd from 7.5.

Comment 2 Denis Silakov 2018-06-06 16:03:04 UTC
Rough bisection discovered that everything works fine again with the following patches disabled in systemd:

#Patch0546: 0546-path-util-make-use-of-mnt_id-field-exported-in-proc-.patch
#Patch0549: 0549-test-path-util-force-rm_rf.patch
#Patch0551: 0551-mount-make-sure-we-unmount-tmpfs-mounts-before-we-de.patch
#Patch0561: 0561-automount-if-an-automount-unit-is-masked-don-t-react.patch
#Patch0601: 0601-automount-ack-automount-requests-even-when-already-m.patch
#Patch0609: 0609-core-don-t-choke-if-a-unit-another-unit-triggers-van.patch

(likely this is a bit overkill, at least the problem still exists if we disable only 601 and 609).

Comment 3 Erik Mathis 2018-06-26 15:00:15 UTC
I can confirm this is broken in 7.5 also. all my automounts nolonger work.

Comment 9 Lukáš Nykrýn 2019-02-11 09:53:00 UTC
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/260 -> post

Comment 13 David Tardon 2019-07-08 14:18:24 UTC
PR: https://github.com/systemd-rhel/rhel-7/pull/26

Comment 14 Lukáš Nykrýn 2019-07-11 13:28:35 UTC
fix merged to github master branch -> https://github.com/systemd-rhel/rhel-7/pull/26 -> post

Comment 19 errata-xmlrpc 2020-03-31 20:02:09 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, 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-2020:1117