[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#989340: marked as done (debian-edu-config: broken DHCP configuration)



Your message dated Fri, 04 Jun 2021 22:18:29 +0000
with message-id <E1lpI97-0001gG-DE@fasolo.debian.org>
and subject line Bug#989340: fixed in debian-edu-config 2.11.56
has caused the Debian Bug report #989340,
regarding debian-edu-config: broken DHCP configuration
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
989340: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989340
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debian-edu-config
Version: 2.11.55
Severity: important

During a recent upgrade test I noticed that DHCP stopped working.

The isc-dhcp-server-server package ships an init-script that already stopped
working before, see https://bugs.debian.org/971275 for details.

The previous setup using changes done to /etc/default/isc/dhcp-server and the
init script had been replaced by conditionally providing a systemd unit file.
This setup is failing since I upgraded a combined server installed using the
DI-rc1 BD ISO image, see:
https://cdimage.debian.org/cdimage/bullseye_di_rc1/amd64/iso-bd/

Replacing ExecStartPre with a command inspired by the init script makes DHCP
work again.

The fix is tiny:

diff --git a/share/debian-edu-config/isc-dhcp-server.service b/share/debian-edu-config/isc-dhcp-server.service
index be60b45a..22d77f76 100644
--- a/share/debian-edu-config/isc-dhcp-server.service
+++ b/share/debian-edu-config/isc-dhcp-server.service
@@ -7,7 +7,7 @@ Requires=slapd.service
 Type=forking
 RestartSec=2s
 Restart=on-failure
-ExecStartPre=-sleep 2
+ExecStartPre=-/usr/bin/touch /var/lib/dhcp/dhcpd.leases
 ExecStart=/usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf

 [Install]
diff --git a/share/debian-edu-config/isc-dhcp-server.service.eth1_only b/share/debian-edu-config/isc-dhcp-server.service.eth1_only
index 87cc93a8..46557e6b 100644
--- a/share/debian-edu-config/isc-dhcp-server.service.eth1_only
+++ b/share/debian-edu-config/isc-dhcp-server.service.eth1_only
@@ -7,7 +7,7 @@ Requires=slapd.service
 Type=forking
 RestartSec=2s
 Restart=on-failure
-ExecStartPre=-sleep 2
+ExecStartPre=-/usr/bin/touch /var/lib/dhcp/dhcpd.leases
 ExecStart=/usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf eth1

 [Install]

 Wolfgang

--- End Message ---
--- Begin Message ---
Source: debian-edu-config
Source-Version: 2.11.56
Done: Holger Levsen <holger@debian.org>

We believe that the bug you reported is fixed in the latest version of
debian-edu-config, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 989340@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Holger Levsen <holger@debian.org> (supplier of updated debian-edu-config package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 05 Jun 2021 00:06:13 +0200
Source: debian-edu-config
Architecture: source
Version: 2.11.56
Distribution: unstable
Urgency: medium
Maintainer: Debian Edu Developers <debian-edu@lists.debian.org>
Changed-By: Holger Levsen <holger@debian.org>
Closes: 989338 989340 989342
Changes:
 debian-edu-config (2.11.56) unstable; urgency=medium
 .
   [ Wolfgang Schweer ]
   * Adjust workaround for isc-dhcp-server-ldap bug #971275. (Closes: #989340)
     - share/debian-edu-config/isc-dhcp-server.{service,service.eth1_only}:
       Use ExecStartPre command inspired by the isc-dhcp-server init script
       instead of a sleep command.
   * Adjust Exim configuration on client systems. (Closes: #989338)
     - cf3/cf.exim:
       Use exim-ldap-client-v4.conf file as exim4.conf on client machines instead
       of preseeded configuration. This way sending system emails to the main
       server is working again after the exim4 4.94 changes.
   * Adjust sbin/debian-edu-ltsp-install. (Closes: #989342)
     - Drop line containing the cp command (/var/cache/apt doesn't contain .bin
       files in all use cases and the benefit is minimal if they exist; also, the
       pkgcache.bin and srcpkgcache.bin files might contain outdated data).
     - Use the BD ISO image to setup X2Go thin client support only if the script
       is run inside the Debian Installer environment. There are too many ways
       to install a combined server (with or without Internet connection, with
       or without adjusting the sources list, with or without running apt update)
       to cover all these cases.
Checksums-Sha1:
 c0c1ffba49d305de573f43fb18613ff976169eed 1926 debian-edu-config_2.11.56.dsc
 a46cbb3ae3a1983193cc41d1441f2beb82517364 342400 debian-edu-config_2.11.56.tar.xz
 4faa44cf5c316b5ad2fdc092e2703fd70046dc8c 5469 debian-edu-config_2.11.56_source.buildinfo
Checksums-Sha256:
 a72627a475e2f64d59b9f03e9e97130fddade7944573d017bc6b720c6c47076e 1926 debian-edu-config_2.11.56.dsc
 968465297bbf8816591ec63031d715a7c88eeb012d27c3b876bcbdeba8977fb9 342400 debian-edu-config_2.11.56.tar.xz
 8e4f3ef2c1ea3812df544abf801369bb064a5693ba345f83ecea66b394197e03 5469 debian-edu-config_2.11.56_source.buildinfo
Files:
 e3448bf5cdcde484c1eef06c6a9a4e1e 1926 misc optional debian-edu-config_2.11.56.dsc
 ca15b95ffdf59a3fb9a569b2e698ac93 342400 misc optional debian-edu-config_2.11.56.tar.xz
 e82c76e7f1a934b9b1b359fc62143116 5469 misc optional debian-edu-config_2.11.56_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEuL9UE3sJ01zwJv6dCRq4VgaaqhwFAmC6pG4ACgkQCRq4Vgaa
qhx4Jg//W0coQvUaOtkK5OTXi6+uNKh3+SynuK7uPDTsVvXJa7H99ZQr7bS7oQoj
gtr4sZe6yg+EBncXn/gWqfOeyakbFzQy6UQ1JrUQom2ENXyeO3Oy1Y8U+sCqgEJ2
miXWalXCob54gn5nHTNcXhwZPVQ3elupvczwevb2TUTgMJ00bowZcnbeRT5/1FTK
y5QY7A5OwiKEPIdiHriUzgsWMD2stscik9YMBPCYl1si9XpzymYeJOTwmlMOnwv/
MzvdTiKHrQ8ianuxbgYiY/fuF5XqnHtyb0oNi5Iox5a58Jb++OJWB0GEY0WvBGFh
6uS2CDacDG+QinoosI4CQXYn3PH9ivwmT+kI4hHtsNbIVvBSQOiu9EPzK7McNDhw
fZ+88kEf4SjQVKz0kwODLyUHeizk+vMe1jrq0k2hgSwSAb4ziFSznhKT32fOidqA
WCYGOvohrHxHGWTwO0Vu3bgo8lPgR0Tm7IQLtVVNbrdjO0ZfzgUNKfNhEglE+uzK
G70ngOY9X8TRCjKizELmvvHJpss4Q+WPpQXtQY8Y0Jmuz7tFkrecARnyN1liD+AF
BHPYwF04UgP6tYF7xns+kenrno+duusW5abki9DwqYsYRaLXmeFQhYxuDvGpkrzw
Q3zgvpokhlOgZR4KJ2Uzp/Ybb/8JPfNI8EG5HOP2WKTrLo09iDQ=
=jgie
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: