Bug 1031093 - Document that yp.conf is rewritten after booting the system
Document that yp.conf is rewritten after booting the system
Product: Fedora
Classification: Fedora
Component: ypbind (Show other bugs)
x86_64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Honza Horak
Fedora Extras Quality Assurance
: Documentation
Depends On:
  Show dependency treegraph
Reported: 2013-11-15 10:28 EST by Benoît Gaurier
Modified: 2013-12-13 21:52 EST (History)
2 users (show)

See Also:
Fixed In Version: ypbind-1.37.1-8.fc20
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-12-13 21:52:59 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Benoît Gaurier 2013-11-15 10:28:52 EST
Description of problem:
After each boot, the /etc/yp.conf file is overwritten and the server name is lost/disappears. So, ypbind.service does not start. 

Version-Release number of selected component (if applicable):
Kernel: 3.11.8-300.fc20.x86_64

How reproducible:
After each boot

Steps to Reproduce:
1. Use system-config-authentication to set the NIS domain and server or write them in the file /etc/yp.conf
2. Reboot
3. ypbind.service do not start because the NIS server name disappears in the /etc/yp.conf file

Actual results:
the NIS server name disappears in the yp.conf file after reboot

Expected results:
the NIS server name stays in the yp.conf file in order to start correctly the ypbind.service

Additional info:
Comment 1 Honza Horak 2013-11-18 02:44:08 EST
This is most probably caused by /etc/dhcp/dhclient.d/nis.sh, which is a script executed by dhclient and is expected to update /etc/yp.conf according to information from DHCP. In case you don't wish to update /etc/yp.conf by DHCP, you should define PEERNIS="no" in /etc/sysconfig/network. Does this change help in your case?
Comment 2 Benoît Gaurier 2013-11-18 04:19:18 EST
Thank you. It boots very well and quickly when I add the variable PEERNIS="no" to the file /etc/sysconfig/network.

However, I never add it before and it was always working with the previous releases. After a check on another PC with F18, this is what I have on /etc/sysconfig/network:

and my yp.conf looks like:
domain mynisdomain broadcast

With F20, what I have now is the following:
/etc/sysconfig/network is:

and yp.conf:
domain mynisdomain server mynisserver
Comment 3 Honza Horak 2013-11-18 07:03:18 EST
(In reply to Benoît Gaurier from comment #2)
> However, I never add it before and it was always working with the previous
> releases.

What I can say about ypbind is that its behaviour in this respect hasn't changed for a long time. So it seems to me like either something on network changed (e.g. DHCP configuration now sends NIS information, while it didn't before) or DHCP has some different behaviour.

Anyway, this functionality is not documented yet, so I'm going to add the following into ypbind(8) man page:
DHCP client by defualt changes /etc/yp.conf in case DHCP server sends NIS configuration in the respond. In that case /etc/dhcp/dhclient.d/nis.sh changes /etc/yp.conf according such configuration and creates a back-up copy of the original configuration file into /var/lib/dhclient/nis.conf.predhclient.$interface.  In order to disable changing /etc/yp.conf by DHCP client, add PEERNIS=no into /etc/sysconfig/network.
Comment 4 Fedora Update System 2013-11-18 07:21:25 EST
ypbind-1.37.1-8.fc20 has been submitted as an update for Fedora 20.
Comment 5 Fedora Update System 2013-11-18 15:19:44 EST
Package ypbind-1.37.1-8.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ypbind-1.37.1-8.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 6 Fedora Update System 2013-12-13 21:52:59 EST
ypbind-1.37.1-8.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.