Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 248961

Summary: Autofs does not gracefully handle the MTAB_NOTUPDATED exit code from [u]mount
Product: Red Hat Enterprise Linux 4 Reporter: Jeff Moyer <jmoyer>
Component: autofsAssignee: Jeff Moyer <jmoyer>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: low Docs Contact:
Priority: low    
Version: 4.0CC: ikent
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0734 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-15 16:02:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Gracefully handle the mtab notupdated exit code from mount/umount. none

Description Jeff Moyer 2007-07-19 20:49:37 UTC
Description of problem:
Autofs will fail to start if mount is unable to update the mtab file.  It will
also fail to mount indirect mount points because of this problem.

I ran into this problem while running our regression test suite against autofs
v4.  Specifically, test /CoreOS/autofs/bugzillas/ subtest bz23829 failed.

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

How reproducible:
100%

Steps to Reproduce:
Run the RHTS regression test described above.

Additional info:

The fix retries mounts that fail with MTAB_NOTUPDATED (return code 16),
specifying the -f option.  This tells mount to not actually perform a mount, but
to try to update /etc/mtab.  umount has no such option, so we simply retry the
umount.  The number of retries is set to 3 in both cases (and mount/umount have
builtin retry timeouts, as well).

Comment 1 Jeff Moyer 2007-07-19 20:49:37 UTC
Created attachment 159609 [details]
Gracefully handle the mtab notupdated exit code from mount/umount.

Comment 2 RHEL Program Management 2007-07-19 20:55:39 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 8 errata-xmlrpc 2007-11-15 16:02:51 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0734.html