Your message dated Tue, 02 Dec 2014 12:19:15 +0000 with message-id <[email protected]> and subject line Bug#769561: fixed in debian-edu-config 1.814 has caused the Debian Bug report #769561, regarding debian-edu-config: autofs fail to work when dhclient is slow to set up network 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 [email protected] immediately.) -- 769561: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769561 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: debian-edu-config Version: 1.813 Severity: important Tags: patch pending Some times, when booting a Debian Edu Jessie Workstation or another profile using DHCP, the autofs process do not work after boot. The reason is that the process start before the DHCP client is done setting up the network interface. The autofs process is then unable to look up the LDAP server DNS name and unable to look up the automount maps in LDAP. We suspect this is caused by bug #710490 in autofs. A workaround is to reload autofs when dhclient is done setting up the interface. The following patch implement this approach, and with this in place, I have not been able to trigger the problem on a network with a very slow DHCP server. The patch is already commited to git. diff --git a/Makefile b/Makefile index 2586b7d..b5a1c04 100644 --- a/Makefile +++ b/Makefile @@ -100,6 +100,7 @@ SYSCONFFILES = \ cfengine/update.conf \ cfengine/inputs/cfagent.conf \ cups/cupsd-debian-edu.conf \ + dhcp/dhclient-exit-hooks.d/autofs-reload \ dhcp/dhclient-exit-hooks.d/wpad-proxy-update \ dhcp/dhclient-exit-hooks.d/fetch-ldap-cert \ dhcp/dhclient-exit-hooks.d/hostname \ diff --git a/etc/dhcp/dhclient-exit-hooks.d/autofs-reload b/etc/dhcp/dhclient-exit-hooks.d/autofs-reload new file mode 100755 index 0000000..7276ba1 --- /dev/null +++ b/etc/dhcp/dhclient-exit-hooks.d/autofs-reload @@ -0,0 +1,20 @@ +#!/bin/sh +# Workaround for 710490 where autofs cache failing DNS entries +# when started before the network is up. + +if [ -r /etc/debian-edu/config ] ; then + . /etc/debian-edu/config +fi + +if [ false = "$DHCP_AUTOFS_UPDATE" ] ; then + exit 0 +fi + +case $reason in + BOUND|RENEW|REBIND|REBOOT) + logger -t autofs-reload "reloading autofs from dhcp exit hook" + service autofs reload + ;; + EXPIRE|FAIL|RELEASE|STOP) + ;; +esac -- Happy hacking Petter Reinholdtsen
--- End Message ---
--- Begin Message ---Source: debian-edu-config Source-Version: 1.814 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 [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Holger Levsen <[email protected]> (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 [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Tue, 02 Dec 2014 12:53:53 +0100 Source: debian-edu-config Binary: debian-edu-config Architecture: source all Version: 1.814 Distribution: unstable Urgency: low Maintainer: Debian Edu Developers <[email protected]> Changed-By: Holger Levsen <[email protected]> Description: debian-edu-config - Configuration files for Skolelinux systems Closes: 769559 769561 769806 770302 770312 Changes: debian-edu-config (1.814) unstable; urgency=low . [ Petter Reinholdtsen ] * Extend grub workaround to automatically handle /dev/vd*, /dev/hd* and /dev/xvd* in addition to /dev/sd*, allowing virtual machines using virtio, Xen and the old device names to install automatically too (Closes: #769559). * Add new dhclient hook to work around bug #710490 where a race in autofs make it fail with slow DHCP servers (Closes: #769561). * In LTSP setup, allow the purging of openvpn to fail (which happen if it is unknown to apt), to get LTSP installation working using the usbstick ISO (Closes: #770312). . [ Wolfgang Schweer ] * testsuite/network: cover case that udev persistent network card rules file isn't written at all. * Provide slbackup-php configuration file etc/slbackup-php/config.php. Without a proper configuration the backupserver default 'localhost' leads to errors if 'https://backup/slbackup-php' isn't called on the backupserver. (Previously the default was 'backup'; it was changed to 'localhost' some time ago to make the package useable on vanilla Debian systems, but a config file for Debian Edu wasn't provided.) (Closes: #769806). * sbin/debian-edu-pxeinstall: add 'mirror/http/mirror' (select entry) from the installed system to the preseed file to avoid manual selection during PXE installations. (Closes: #770302). . [ Petter Reinholdtsen ] * Also set mirror/http/mirror when installing from DVD/USB stick. Checksums-Sha1: 6947493eb5eca2313cb6bb01f1929f014a1e23df 1910 debian-edu-config_1.814.dsc a7c26356e736812292e58b2d4034243e12b1e8c4 502010 debian-edu-config_1.814.tar.gz f1f3ff477e8ec3558cebafe69471abec5beae8d3 381494 debian-edu-config_1.814_all.deb Checksums-Sha256: bd96fbe6c1a9a0eca714b8100cca8bbabd8673239e38a6c959b85501527866b7 1910 debian-edu-config_1.814.dsc 1ad92ebfda38cbc0cc2d865f29644b69c1b01ce87bd27ef005899f9c5f71355a 502010 debian-edu-config_1.814.tar.gz c16cfbba76cb2218200182c240e7913f9390352a5e20daefd33b30c114625205 381494 debian-edu-config_1.814_all.deb Files: 1ca0576f258f0a7f83e5f657ded58dc5 1910 misc extra debian-edu-config_1.814.dsc 97a49c4a1c0e3fc282f0282f3c4746b6 502010 misc extra debian-edu-config_1.814.tar.gz e0008b908d740c9e864dc5974b11e9c3 381494 misc extra debian-edu-config_1.814_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIVAwUBVH2qZAkauFYGmqocAQoAcw/7BDAUbsqu3Ps3NGTktBvkb6/Pwfe8XBPq /SaBNJwi+LX/zyLhRYkdZLqhBBNI8J1dlMrj0qpB5W62C3umLMz+21yoUBQ3BbaU hNsEpAyLCQokN80CaUl0K2gaiWtDApdiTHmln9zMWklT38YvmR+dfKy2P12SzqTy V6NYWOLorwGTRAb7/oBeCkdvGy3ntB4GH8HibBCzV19fBO2gXDvqpuZP1Gsi2pqx /CKiJBNt0ffnQJ7VBpbeHEfoHCFa62a36m/Tgtd25PJC4vEnbe3eXwQc2S/TF8ry k0dwz59kxoz2pQ3sj2WcZO+NDjMaR9jc4thK90QXidu12TJJ1WJgGNsQvpRkLEo+ qxUtWIupRR5IAsG+QKkQWpJN+j9p0Dvubx2JYJcFKk18i9NCtBmaqvcXr92hjFlv dIBJI1DTMDasBkAWXHGEv+IVsuEMDLqUUmRiWH+NDV20PywjduPpr5jhNzJK47k4 l4cmifJBrp5fyCMjqBywfy8xf7OylxYBlzelL5zEYvA1PA6Yy6kuzGT0xPB65uGu 25QJXv7/O6Ib/cs9bKWENKswCv+aG1uXQR+bZ6exI8MVwmnKtJljaCMthk0L0JlG 2op1bYDYJU2qo0bIm/cT9XaZ0Wg4/7lCLUqDGr1t/0rWI3WxCg0lFqnbNgpL2OGT kssgrlyKJlc= =f2/S -----END PGP SIGNATURE-----
--- End Message ---

