Red Hat Bugzilla – Bug 204215
ypbind quits if no ypservers
Last modified: 2011-02-22 09:48:09 EST
Description of problem:
ypbind quits if all ypservers go away (a network failure or all ypserv's die via
a bug, e.g. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=184405).
This prevents the affected machine from reviving itself after ypservers come
back (the network is reconnected or crashed ypserv's are restarted). Always,
manual intervention is required (to restart ypbind) and often the affected
machine has to be rebooted because autofs, sshd and others seem to malfunction
in the absense of ypbind.
This problem had existed since around RHEL9.
This behaviour (ypbind quits if ypserv's cannot be contacted) is not documented
in "man ypbind", there is no option to change the time before ypbind quits, and
ypbind on other OSes do not do this- they wait forever.
Version-Release number of selected component (if applicable):
ypbind-1.17.2-3.i386 and others
Steps to Reproduce:
1. setup a cluster with two machines- one NIS server, one NIS client
2. service ypserv stop
3. wait for some time (many hours?), observe ypbind is no longer running on the
If a machine is configured part of NIS, not being able to contact an NIS server
should be treated as a temporary error that will be quickly repaired (within a
few hours, within a few days at maximum- failure on Friday night will be fixed
on Monday morning)
I tried to reproduce it for a few times, but failed (ypbind did not exit, even after three/four days).
This is not a feature, but a bug. The ypbind releases following ypbind-1.17.2 contained extensive fixes for some threading issues in the relevant code. That might be it, but I need to reliably reproduce the behaviour.
Created attachment 412901 [details]
Proposed patch backporting proper thread locking
I cannot reproduce this problem, but if it is reproducible on some computer, please try this patch.
Created attachment 418557 [details]
ypbind-1.17.2-14.i386.rpm test build
Created attachment 418558 [details]
ypbind-1.17.2-14.x86_64.rpm test build
Created attachment 418559 [details]
ypbind-1.17.2-14.ia64.rpm test build
Created attachment 418560 [details]
ypbind-1.17.2-14.ppc.rpm test build
Created attachment 418561 [details]
ypbind-1.17.2-14.s390.rpm test build
Created attachment 418563 [details]
ypbind-1.17.2-14.ppc64.rpm test build
Created attachment 418564 [details]
ypbind-1.17.2-14.s390x.rpm test build
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.
Closing this bugzilla WONTFIX, RHEL-4.9 is out and future async updates will
contain only critical and security fixes. Problem is fixed in RHEL-5 and 6.