Red Hat Bugzilla – Bug 196028
shell tests do not always work properly on automounted directories
Last modified: 2007-11-30 17:07:10 EST
Description of problem:
run-parts fails (very often) on autofs controlled directories
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add autofs controlled directory to /etc/crontab
"01 * * * * root run-parts /usr/local/etc/cron.hourly"
2. Let it go for a while and watch run-parts fail. the [! -d $1 ] test
in /usr/bin/run-parts does not always succeed. It seems to succeed 100% in
the shell interactively. It is very inconsistent.
run-parts fails; the test to see if $1 is a directory fails, where $1 is an
run-parts would work
autofs options are --ghost and --timeout=60. this sort of thing seems to fail
only when run from cron. Just doing "test -d /foo/bar" interactively seems to
work all the time (where bar is automounted).
I can't reproduce this problem. Can you at least try U7 kernel and autofs
packges? There have been fixes to expire/mount races when ghosting is involved,
so perhaps you are running into that.
will try this as soon as possible ... can you keep the bug open for a while?
This problem is very inconsistent ...
Yes, of course. But I am still awaiting information from you, so I've changed
the state appropriately.
Updating seems to have resolved the problem, thanks.
*** This bug has been marked as a duplicate of 142856 ***