[Bug 826319] New: DHCP gets autostarted too early (network interface not up yet - Systemd/LSB problem)
https://bugzilla.novell.com/show_bug.cgi?id=826319 https://bugzilla.novell.com/show_bug.cgi?id=826319#c0 Summary: DHCP gets autostarted too early (network interface not up yet - Systemd/LSB problem) Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dirk@goe.net QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0 OpenSuSE 12.3 system with network statically configured via NetworkManager, DHCPD activated via the Yast2 runlevel manager. Interface with static address is eth1. After rebooting the system dhcpd is not available: # systemctl status dhcpd dhcpd.service - LSB: ISC DHCP 4.x Server Loaded: loaded (/etc/init.d/dhcpd) Active: failed (Result: exit-code) since Sat, 2013-06-22 17:49:19 CEST; 43min ago Process: 1006 ExecStart=/etc/init.d/dhcpd start (code=exited, status=1/FAILURE) CGroup: name=systemd:/system/dhcpd.service Jun 22 17:49:19 linux-4q60.site dhcpd[1485]: Not configured to listen on any interfaces! Jun 22 17:49:19 linux-4q60.site dhcpd[1485]: Jun 22 17:49:19 linux-4q60.site dhcpd[1485]: If you did not get this software from ftp.isc.org, please Jun 22 17:49:19 linux-4q60.site dhcpd[1485]: get the latest from ftp.isc.org and install that before Jun 22 17:49:19 linux-4q60.site dhcpd[1485]: requesting help. Jun 22 17:49:19 linux-4q60.site dhcpd[1485]: Jun 22 17:49:19 linux-4q60.site dhcpd[1006]: Starting ISC DHCPv4 4.x Server Jun 22 17:49:19 linux-4q60.site dhcpd[1006]: please see /var/log/rc.dhcpd.log for details ..failed Jun 22 17:49:19 linux-4q60.site systemd[1]: Failed to start LSB: ISC DHCP 4.x Server. Jun 22 17:49:19 linux-4q60.site systemd[1]: Unit dhcpd.service entered failed state When I start the daemon later on, everything works as expected: # systemctl status dhcpd dhcpd.service - LSB: ISC DHCP 4.x Server Loaded: loaded (/etc/init.d/dhcpd) Active: active (running) since Sat, 2013-06-22 18:34:25 CEST; 3s ago Process: 11308 ExecStart=/etc/init.d/dhcpd start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/dhcpd.service └ 11501 /usr/sbin/dhcpd -4 -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid -chroot /var/lib/dhcp -lf /db/dhcpd.leases -user... Jun 22 18:34:25 linux-4q60.site dhcpd[11500]: All rights reserved. Jun 22 18:34:25 linux-4q60.site dhcpd[11500]: For info, please visit https://www.isc.org/software/dhcp/ Jun 22 18:34:25 linux-4q60.site dhcpd[11500]: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified ...ig file Jun 22 18:34:25 linux-4q60.site dhcpd[11500]: Wrote 0 deleted host decls to leases file. Jun 22 18:34:25 linux-4q60.site dhcpd[11500]: Wrote 0 new dynamic host decls to leases file. Jun 22 18:34:25 linux-4q60.site dhcpd[11500]: Wrote 5 leases to leases file. Jun 22 18:34:25 linux-4q60.site dhcpd[11500]: Listening on LPF/eth1/00:1f:d0:49:06:70/192.168.192.0/24 Jun 22 18:34:25 linux-4q60.site dhcpd[11308]: Starting ISC DHCPv4 4.x Server [chroot]..done Jun 22 18:34:25 linux-4q60.site systemd[1]: Started LSB: ISC DHCP 4.x Server. Jun 22 18:34:26 linux-4q60.site dhcpd[11501]: DHCPREQUEST for 192.168.192.220 from a0:88:b4:0d:68:50 via eth1 Jun 22 18:34:26 linux-4q60.site dhcpd[11501]: DHCPACK on 192.168.192.220 to a0:88:b4:0d:68:50 via eth1 An expert friend gave the hint, that this one is an issue of not-yet-systemd compliant startup scripts (LSB). Reproducible: Always Steps to Reproduce: 1. Reboot the machine 2. run "systemctl status dhcpd" 3. run "systemctl start dhcpd" 4. check with "systemctl status dhcpd" Actual Results: Deamon starts not properly and needs to be started by hand. Expected Results: DHCPD should be available. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=826319 https://bugzilla.novell.com/show_bug.cgi?id=826319#c1 Lars Müller <lmuelle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lmuelle@suse.com AssignedTo|bnc-team-screening@forge.pr |mt@suse.com |ovo.novell.com | --- Comment #1 from Lars Müller <lmuelle@suse.com> 2013-06-22 15:28:05 CEST --- Passing the issue to the dhcp maintainer. @Marius: Might we address this potential race condition by a systemd service file? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=826319 https://bugzilla.novell.com/show_bug.cgi?id=826319#c2 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fcrozat@suse.com --- Comment #2 from Frederic Crozat <fcrozat@suse.com> 2013-07-02 12:01:44 UTC ---
OpenSuSE 12.3 system with network statically configured via NetworkManager
by default, there is no timeout to wait for network to be up when using NM. You might want to change NM_ONLINE_TIMEOUT to a non zero value in /etc/sysconfig/network/config -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=826319 https://bugzilla.novell.com/show_bug.cgi?id=826319#c3 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mt@suse.com |os.gnome.maintainers@gmail. | |com --- Comment #3 from Marius Tomaschewski <mt@suse.com> 2013-07-08 09:23:26 UTC --- (In reply to comment #2)
You might want to change NM_ONLINE_TIMEOUT to a non zero value in /etc/sysconfig/network/config
Exactly. AFAIK, it is intentionally set to NM_ONLINE_TIMEOUT=0 by default, but let's reassign to NetworkManager maintainers, who are authoritative for the default setting. (In reply to comment #1) NetworkManager installs network.service alias link - dependencies are OK. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com