Bug 716746

Summary: domainname not set - NIS failing with systemd
Product: [openSUSE] openSUSE 12.1 Reporter: Dirk Mueller <dmueller>
Component: OtherAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High CC: gp
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 696902    
Attachments: dmesg as requested

Description Dirk Mueller 2011-09-08 17:12:44 UTC
Hi, 

after switching to systemd, domainname is not set: 


oldboy:/etc/init.d # domainname 
(none)

even though dhcp delivers it: 

dhcpcd-test eth0 | grep NIS

NISDOMAIN='suse.de'

which means that ypbind fails on startup: 

ypbind 
domainname not set - aborting.
Comment 1 Frederic Crozat 2011-09-09 08:07:17 UTC
could you post dmesg (or even better, reboot with "systemd.log_level=debug systemd.log_target=kmsg" and post dmesg then) ?

I'm suspecting dependency cycle which might be dropping some actions.
Comment 2 Gerald Pfeifer 2011-09-11 00:07:25 UTC
Created attachment 450162 [details]
dmesg as requested

A vanilla dmesg has nothing at all?

Interestingly this happens also when I, as root, invoke the YaST module (yast nis)
and set the domain to suse.de.  When I then, in the YaST module, search for NIS
servers it finds our two, alas saving/existing the module results in an error
message about domain name not found.
Comment 3 Gerald Pfeifer 2011-09-11 00:12:07 UTC
BTW, until this is fixed Factory is mostly unusable in our Nürnberg office
(unless one fakes the automounts and duplicate login data).
Comment 4 Frederic Crozat 2011-09-11 08:16:41 UTC
Could you try to remove /lib/systemd/system/localnet.service (which is a symlink to /dev/null ) ? It think it should allow nisdomain to be set properly.

If it works, I'll reenable the script until I fix systemd to "do the right thing".
Comment 5 Gerald Pfeifer 2011-09-11 12:41:42 UTC
Yes, that works!

Just invoking "yast lan" after removing the file still resulted in an error
message and NIS did not start.  

A full reboot saw NIS up and running again, though.
Comment 6 Bernhard Wiedemann 2011-09-12 09:00:15 UTC
This is an autogenerated message for OBS integration:
This bug (716746) was mentioned in
https://build.opensuse.org/request/show/81891 Factory / systemd
Comment 7 Frederic Crozat 2011-09-12 09:02:16 UTC
I've pushed the fix to Factory..
I'll keep this bug opened until I fix systemd to no longer depend on boot.localnet
Comment 8 Frederic Crozat 2012-10-12 17:05:43 UTC
I've update ypbind systemd service for Factory (see http://download.opensuse.org/repositories/home:/fcrozat:/branches:/network/openSUSE_Factory/ ) to set domainname if not set already, before starting ypbind.

Could somebody test the attached package (or its 12.2 version) after doing :
ln -s /dev/null /lib/systemd/system/localnet.service (and rebooting) ?

This will disable boot.localnet service and ensure all is correctly configured when using systemd ypbind service.
Comment 9 Frederic Crozat 2012-11-19 14:01:44 UTC
sr 141888

closing
Comment 10 Bernhard Wiedemann 2012-11-22 15:00:07 UTC
This is an autogenerated message for OBS integration:
This bug (716746) was mentioned in
https://build.opensuse.org/request/show/142431 Factory / ypbind
Comment 11 Bernhard Wiedemann 2012-11-23 12:00:07 UTC
This is an autogenerated message for OBS integration:
This bug (716746) was mentioned in
https://build.opensuse.org/request/show/142568 Factory / systemd