Bug 45065

Summary: DHCP daemon is not always started after rebooting a UCS 4.2 system
Product: UCS Reporter: Philipp Hahn <hahn>
Component: DHCPAssignee: Philipp Hahn <hahn>
Status: CLOSED FIXED QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 Flags: hahn: Patch_Available+
Version: UCS 4.2   
Target Milestone: UCS 4.2-1-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=43688
What kind of report is it?: Bug Report What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.286 Enterprise Customer affected?:
School Customer affected?: Yes ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: 2017070321000483 Bug group (optional):
Max CVSS v3 score:

Description Philipp Hahn univentionstaff 2017-07-25 10:49:18 CEST
univention-dhcp does not start when the DNS server is not yet available. In that case the /etc/init.d/univention-dhcp # test_config() fails to resolve the LDAP server and aborts switching RUNSV to running. This is logged in /var/log/univention/dhcp.log:
> ... POLICY ( ERROR ) : Failed to get namingContexts: Can't contact LDAP server

I'm able to re-product this by adding a "sleep 10" to "/etc/runit/univention-bind-samba4/run" before BIND9 is started. It does not trigger always.

+++ This bug was initially created as a clone of Bug #43688 +++
Comment 1 Philipp Hahn univentionstaff 2017-07-25 11:10:02 CEST
r81356 | Bug #45065 dhcp: Always start DHCP runsv service

Package: univention-dhcp
Version: 11.0.0-9A~4.2.0.201707251103
Branch: ucs_4.2-0
Scope: errata4.2-1

r81357 | Bug #45065 dhcp: Always start DHCP runsv service YAML
 univention-dhcp.yaml
Comment 2 Stefan Gohmann univentionstaff 2017-07-25 16:36:20 CEST
YAML: OK

Tests: OK

Code review: OK
Comment 3 Erik Damrose univentionstaff 2017-07-26 14:39:47 CEST
<http://errata.software-univention.de/ucs/4.2/101.html>