Bug 45065 - DHCP daemon is not always started after rebooting a UCS 4.2 system
DHCP daemon is not always started after rebooting a UCS 4.2 system
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: DHCP
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2-1-errata
Assigned To: Philipp Hahn
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-25 10:49 CEST by Philipp Hahn
Modified: 2017-07-26 14:39 CEST (History)
0 users

See Also:
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:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>