Bug 43651 - UCS 4.2 upgrade failed due to isc-dhcp-server
UCS 4.2 upgrade failed due to isc-dhcp-server
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: DHCP
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Arvid Requate
Philipp Hahn
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-25 10:11 CET by Stefan Gohmann
Modified: 2017-04-04 18:29 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain: 0.006
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
updater.log.bz2 (203.02 KB, application/x-bzip)
2017-02-25 10:11 CET, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2017-02-25 10:11:18 CET
Created attachment 8459 [details]
updater.log.bz2

The Jenkins upgrade to UCS 4.2 failed:
http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/46/

From the updater.log:

isc-dhcp-server (4.3.1-6+deb8u2A~4.2.0.201612191043) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/init.d/isc-dhcp-server.debian wird installiert ...
insserv: warning: script 'K01univention-s4-connector' missing LSB tags and overrides
insserv: warning: script 'K02bind9' missing LSB tags and overrides
insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'K01univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'K01univention-saml' missing LSB tags and overrides
insserv: warning: script 'S02resize2fs' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'univention-saml' missing LSB tags and overrides
insserv: warning: script 'univention-s4-connector' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags and overrides
insserv: warning: script 'bind9' missing LSB tags and overrides
insserv: warning: script 'univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'resize2fs' missing LSB tags and overrides
This script is disabled, use /etc/init.d/univention-dhcp..
Restarting univention-dhcp: dhcpd.
isc-dhcp-server-ldap (4.3.1-6+deb8u2A~4.2.0.201612191043) wird eingerichtet ...
univention-dhcp (11.0.0-4A~4.2.0.201701292329) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/init.d/univention-dhcp wird installiert ...
Neue Version der Konfigurationsdatei /etc/runit/univention-dhcp/run wird installiert ...
Neue Version der Konfigurationsdatei /etc/univention/templates/files/etc/dhcp/dhcpd.conf wird installiert ...
Neue Version der Konfigurationsdatei /etc/univention/templates/files/etc/init.d/isc-dhcp-server wird installiert ...
File: /etc/init.d/isc-dhcp-server
File: /etc/logrotate.d/univention-dhcp
File: /etc/dhcp/dhcpd.conf
insserv: warning: script 'K01univention-s4-connector' missing LSB tags and overrides
insserv: warning: script 'K02bind9' missing LSB tags and overrides
insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'K01univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'K01univention-saml' missing LSB tags and overrides
insserv: warning: script 'S02resize2fs' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'univention-saml' missing LSB tags and overrides
insserv: warning: script 'univention-s4-connector' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags and overrides
insserv: warning: script 'bind9' missing LSB tags and overrides
insserv: warning: script 'univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'resize2fs' missing LSB tags and overrides
dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf.
The error was: 
Internet Systems Consortium DHCP Server 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
Configuration file errors encountered -- exiting

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..

exiting.
invoke-rc.d: initscript univention-dhcp, action "start" failed.
dpkg: Fehler beim Bearbeiten des Paketes univention-dhcp (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Comment 1 Philipp Hahn univentionstaff 2017-02-28 08:54:18 CET
Please provide (maybe Bug #43217 ?)
 ucr search --brief '^(nameserver|dns/forwarder)[123]$'
and
 sed -i -e'/ldap-debug-file/s/^# *//' /etc/dhcp/dhcpd.conf
 dhcpd -d -f -t
 cat /var/log/dhcp-ldap-startup.log
Comment 3 Philipp Hahn univentionstaff 2017-02-28 10:31:19 CET
(In reply to Stefan Gohmann from comment #2)
> It is still reproducible via Jenkins:
> http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/
> AutotestUpgrade/SambaVersion=s4,Systemrolle=master/ws/updater.log
> 
> And here is the config replog:
> http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/
> AutotestUpgrade/SambaVersion=s4,Systemrolle=master/ws/config-registry.replog.
> log

set nameserver1=10.210.235.72
set interfaces/eth0/address=10.210.235.72

Feb 27 20:24:16 master071 named[9109]: dlz_dlopen: incorrect version 1 should be 2 in '/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9.so'

So named fails to start.... but why dhcpd?
Comment 4 Arvid Requate univentionstaff 2017-02-28 16:46:59 CET
The error message looks like the situation of Bug #43200, maybe univention-samba4 has not been configured yet in these cases?
Comment 5 Philipp Hahn univentionstaff 2017-02-28 17:00:54 CET
2787 ?        S      0:00 runsvdir -P /etc/service log: ntry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. .


Do dhcpd fails to contact the slapd and fails to start. Later on everythings works:
# ps `pgrep slapd` `pgrep named` `pgrep dhcpd`
  PID TTY      STAT   TIME COMMAND
 3073 ?        S      0:00 /usr/sbin/dhcpd -q -f
 3319 ?        Sl     0:00 /usr/sbin/named -c /etc/bind/named.conf.samba4 -f -d 0
14755 ?        Ssl    0:00 named
30709 ?        Ssl    0:00 /usr/sbin/slapd -h ldapi:/// ldap://:7389/ ldaps://:7636/

# pgrep -fl runsvdir
2787 runsvdir
25873 runsvdir
Comment 6 Stefan Gohmann univentionstaff 2017-03-10 06:52:08 CET
(In reply to Philipp Hahn from comment #5)
> Do dhcpd fails to contact the slapd and fails to start. Later on everythings
> works:

Since the users have to reboot after the upgrade, we could simply not abort the upgrade if the dhcp service fails to start.

It happens again:
http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/ws/updater.log

http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/
Comment 7 Arvid Requate univentionstaff 2017-03-13 23:25:22 CET
Fixed. I had to override the dh_installinit option --error-handler in debian/rules too. Changelog adjusted.
Comment 8 Philipp Hahn univentionstaff 2017-03-14 10:05:32 CET
OK: r77676 r77670 r77672
OK: univention-upgrade
Comment 9 Stefan Gohmann univentionstaff 2017-04-04 18:29:04 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".