Comment 11 for bug 1007293

Revision history for this message
vagk (vagk-p) wrote :

>alex, vagk: could each of you please set YPBINDARGS="-no-dbus -debug" in
>/etc/default/nis, reboot, and attach /var/log/upstart/ypbind.log so we can
>see exactly what's failing?

Here is an excerpt of the /var/log/upstart/ypbind.log when it fails to start

Setting NIS domainname to: sch.local
571: parsing config file
571: Trying entry: ypserver nisserver
571: parsed ypserver nisserver
571: add_server() domain: sch.local, host: nisserver, slot: 0
571: Host name lookup failure
571: No entry found.
No NIS server and no -broadcast option specified.
Add a NIS server to the /etc/yp.conf configuration file,
or start ypbind with the -broadcast option.
Binding to YP server .....backgrounded

Although my understanding of upstart procedures is minimal this line in /etc/init/ypbind.conf got me curious

              and ((filesystem and static-network-up) or failsafe-boot)))

My setup in /etc/network/interfaces (as stated in my previous post) is to get ip from dhcp ( which by the way I assign based on mac to be always the same)

I changed the interfaces file to get static ip and retried.
It failed but for a different reason.
My /etc/yp.conf has no direct ip but a cname
  ypserver nisserver
When networking got up /etc/resolv.conf was empty and that is because resolvconf package deleted the information that the last dhclient command wrote to /etc/resolv.conf

So I removed package resolvconf (which I don't like in lab setups, same as network-manager) and voila!

I rebooted and now I there was a 10 second delay before lightdm started and ypbind got running.

So to conclude :
 Static IP on /etc/network/interfaces and nis server by IP in /etc/yp.conf works (or by cname and without resolvconf package)
 IP from dhcp on /etc/network/interfaces does not work. It seems that ypbind starts before networking

Changing to static ips on 30+ clients is not an option for a lot of reasons.

By the way my tests are also in a vbox that was running 10.04 with no problems (with just nis and nfs client packages added) and was upgraded to 12.04.