[Bug 842357] New: dhcp server does not start properly when using "service dhcpd start"
https://bugzilla.novell.com/show_bug.cgi?id=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c0 Summary: dhcp server does not start properly when using "service dhcpd start" 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: Mathias.Homann@opensuse.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 "service dhcpd start" does not start the dhcpd server Reproducible: Always Steps to Reproduce: 1. killall dhcpd 2. run "service dhcpd start" 3. check the process list, dhcpd is not running Actual Results: dhcpd does not get started properly, the only way to start it is "service dhcpd restart". Expected Results: "service dhcpd start" should start the dhcpd process -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c Mathias Homann <Mathias.Homann@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |842359 -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@suse.com AssignedTo|bnc-team-screening@forge.pr |mt@suse.com |ovo.novell.com | -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c1 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fcrozat@suse.com, | |mt@suse.com AssignedTo|mt@suse.com |werner@suse.com --- Comment #1 from Marius Tomaschewski <mt@suse.com> 2013-09-26 10:22:54 UTC --- I've tested it on a just installed minimal installation + all updates + dhcp-server package kvm VM [with two eth0 with dhcp-client on it, eth1 for the server not yet configured, but this IMO does not mater here, network starts fine]. I guess this report is about a start of an unconfigured (see bnc#842360, perhaps also a not enabled) service, but the systemd-195-13.40.1.x86_64 behaviour is IMO wrong to change into "active (exited)" state: trinity9:~ # systemctl status dhcpd.service dhcpd.service - LSB: ISC DHCP 4.x Server Loaded: loaded (/etc/init.d/dhcpd) Active: inactive (dead) CGroup: name=systemd:/system/dhcpd.service trinity9:~ # systemctl start dhcpd.service trinity9:~ # systemctl status dhcpd.service dhcpd.service - LSB: ISC DHCP 4.x Server Loaded: loaded (/etc/init.d/dhcpd) Active: active (exited) since Thu, 2013-09-26 12:09:49 CEST; 14s ago Process: 2243 ExecStart=/etc/init.d/dhcpd start (code=exited, status=6) CGroup: name=systemd:/system/dhcpd.service Sep 26 12:09:49 trinity9.lab31.mat-home.net systemd[1]: Starting LSB: ISC DHCP 4.x Server... Sep 26 12:09:49 trinity9.lab31.mat-home.net dhcpd[2243]: Starting ISC DHCPv4 4.x Server ... set DHCPD_INTERFACE in /etc/sysconfig/dhcpd..skipped Sep 26 12:09:49 trinity9.lab31.mat-home.net systemd[1]: Started LSB: ISC DHCP 4.x Server. # systemctl show dhcp.service | grep -i remain RemainAfterExit=no The LSB header in the init script does not have X-SystemdRemainAfterExit flag. LSB code 6, that is "program is not configured" should result in an error and not in "active (exited)". I think, that the bugs bnc#842356 and bnc#842358 are just results of this. -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c2 --- Comment #2 from Mathias Homann <Mathias.Homann@opensuse.org> 2013-09-26 10:29:48 UTC --- the dhcp server is configured, see my last comment in bnc#842360. -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c3 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|dhcp server does not start |systemd: LSB exit code 6 |properly when using |considered as success |"service dhcpd start" | --- Comment #3 from Marius Tomaschewski <mt@suse.com> 2013-09-26 10:30:58 UTC --- For completness: same happens with enabled service: trinity9:~ # systemctl stop dhcpd.service trinity9:~ # systemctl status dhcpd dhcpd.service - LSB: ISC DHCP 4.x Server Loaded: loaded (/etc/init.d/dhcpd) Active: inactive (dead) since Thu, 2013-09-26 12:23:36 CEST; 9s ago Process: 2796 ExecStop=/etc/init.d/dhcpd stop (code=exited, status=0/SUCCESS) Process: 2243 ExecStart=/etc/init.d/dhcpd start (code=exited, status=6) CGroup: name=systemd:/system/dhcpd.service trinity9:~ # systemctl enable dhcpd.service dhcpd.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig dhcpd on trinity9:~ # systemctl status dhcpd.service dhcpd.service - LSB: ISC DHCP 4.x Server Loaded: loaded (/etc/init.d/dhcpd) Active: active (exited) since Thu, 2013-09-26 12:24:23 CEST; 4s ago Process: 2796 ExecStop=/etc/init.d/dhcpd stop (code=exited, status=0/SUCCESS) Process: 2817 ExecStart=/etc/init.d/dhcpd start (code=exited, status=6) CGroup: name=systemd:/system/dhcpd.service Sep 26 12:24:23 trinity9.lab31.mat-home.net dhcpd[2817]: Starting ISC DHCPv4 4.x Server ... set DHCPD_INTERFACE in /etc/sysconfig/dhcpd..skipped Sep 26 12:24:23 trinity9.lab31.mat-home.net systemd[1]: Started LSB: ISC DHCP 4.x Server. BTW: The behavior is also not modified by e.g. SuccessExitStatus & Co: trinity9:~ # systemctl show dhcpd.service | grep ExitStatus -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c4 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |mt@suse.com --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2013-09-26 10:54:43 UTC --- I do not understand ... why does /etc/init.d/dhcpd return status 6 (comment #3) if dhcpd is configured (comment #2) .. Beside this SuccessExitStatus is a tag for a systemd service unit to define success exit status: SuccessExitStatus= Takes a list of exit status definitions that when returned by the main service process will be considered successful termination, in addition to the normal successful exit code 0 and the signals SIGHUP, SIGINT, SIGTERM and SIGPIPE. Exit status definitions can either be numeric exit codes or termination signal names, and are separated by spaces. Example: "SuccessExitStatus=1 2 8 SIGKILL", ensures that exit codes 1, 2, 8 and the termination signal SIGKILL are considered clean service terminations. -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2013-09-26 11:03:12 UTC --- And from a look at systemd code, are considered succesfull exit code, in addition to 0, for LSB services, exit code 5 and 6 (and this is wanted, since 2010 at least). -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c6 --- Comment #6 from Dr. Werner Fink <werner@suse.com> 2013-09-26 11:11:28 UTC --- (In reply to comment #5) Why this is wanted? From LSB the user should become warned and /etc/rc.status does this for SysVinit -v|-v[1-9]|-v[1-9][0-9]) local vrt="" local out=1 local opt="en" test -n "${i#-v}" && vrt=${esc:+"${esc}[${i#-v}A"} || opt="e" case "$_rc_status" in 0) vrt="$vrt$rc_done" ; ;; # success 1) vrt="$vrt$rc_failed" ; out=2 ;; # generic or unspecified error 2) vrt="$vrt$rc_failed" ; out=2 ;; # invalid or excess args 3) vrt="$vrt$rc_missed" ; out=2 ;; # unimplemented feature 4) vrt="$vrt$rc_failed" ; out=2 ;; # insufficient privilege 5) vrt="$vrt$rc_skipped"; out=2 ;; # program is not installed 6) vrt="$vrt$rc_unused" ; out=2 ;; # program is not configured 7) vrt="$vrt$rc_failed" ; out=2 ;; # program is not running *) vrt="$vrt$rc_failed" ; out=2 ;; # unknown (maybe used in future) esac echo -$opt "$rc_save$vrt$rc_restore" 1>&$out therefore I'd like to know and understand why systemd does not warn the user. -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c7 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|mt@suse.com |fcrozat@suse.com --- Comment #7 from Marius Tomaschewski <mt@suse.com> 2013-09-26 11:17:48 UTC --- (In reply to comment #4)
I do not understand ... why does /etc/init.d/dhcpd return status 6 (comment #3) if dhcpd is configured (comment #2)
In _my_ case it were unconfigured and the script returned code 6. (In reply to comment #5)
This is IMO nonsense and why I've ressigned it to systemd. You call "systemctl start X" -- service returns _failure_ because it is not configured. Then you fix it and call "systemctl start X" again -- no effect, because it is already in started state -- as systemd assumes wrong [it is not running -- it reported an error]. So I repat Werners question: Why this is wanted? -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c8 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|fcrozat@suse.com | --- Comment #8 from Frederic Crozat <fcrozat@suse.com> 2013-09-26 11:28:50 UTC --- (In reply to comment #7)
I don't know, you would have to ask the systemd folks, I wasn't there when it was designed. -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@suse.com AssignedTo|werner@suse.com |systemd-maintainers@suse.de -- 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=842357 https://bugzilla.novell.com/show_bug.cgi?id=842357#c10 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |erik.hamera@suse.com --- Comment #10 from Dr. Werner Fink <werner@suse.com> 2014-03-06 11:21:07 UTC --- *** Bug 866974 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=866974 -- 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