Red Hat Bugzilla – Bug 446356
ypbind init script quits before timeout
Last modified: 2008-06-11 00:40:35 EDT
Description of problem:
ypbind makes false assumption on ypwhich behaviour: in my case ypwhich does not
wait 15 secs, but quits immediately when domain is not bound yet. In
consequence, the waiting loop consumes NISTIMEOUT in eyes blink, not giving a
chance to bind domain.
Version-Release number of selected component (if applicable):
Appeared when my networks was heavily loaded
Adding additional timeout seems to work in my case:
/usr/bin/ypwhich > /dev/null 2>&1
if [ $RETVAL -eq 0 ]; then
# ypwhich has a hardcode 15sec timeout
# so subtract that from NISTIMEOUT to
# to see of we should continue to wait
timeout=`expr $timeout - 15`
# ADDITIONAL CODE
# sleep 5 sec anyway, in case ypwich returns
please read bug #443409 comments and tell me, if it helps.
(In reply to comment #1)
> please read bug #443409 comments and tell me, if it helps.
I don't use either NM or hald, both are disabled in initscripts on purpose: this
system is meant to have static config only.
Network is configured by DHCP and VPN: the NIS server is behind VPN. Firewall
does not block any traffic on VPN.
Sorry, I missed, that it's F8 bug... It's because there is race condition - if
ypbind starts very quickly, then only 10 seconds timeout is used - and this is
often not enough...
Are you sure about the timeout length? When I fighted this bug I noticed, that
ypbind script exited almost immediately; I should have noticed 10 sec.
Please drop me a note as soon as you got a better solution than mine :)
ypbind-1.20.4-4.fc8 has been submitted as an update for Fedora 8
Please try this update, timing should be better...
ypbind-1.20.4-4.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update ypbind'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-4502
ypbind-1.20.4-4.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.