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

Bug#769561: marked as done (debian-edu-config: autofs fail to work when dhclient is slow to set up network)

Your message dated Tue, 02 Dec 2014 12:19:15 +0000
with message-id <E1XvmQF-0007tb-Ol@franck.debian.org>
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 owner@bugs.debian.org

769561: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769561
Debian Bug Tracking System
Contact owner@bugs.debian.org 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 @@
+# 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
+if [ false = "$DHCP_AUTOFS_UPDATE" ] ; then
+    exit 0
+case $reason in
+       logger -t autofs-reload "reloading autofs from dhcp exit hook"
+       service autofs reload
+       ;;
+       ;;

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

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

Debian distribution maintenance software
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)

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 <debian-edu@lists.debian.org>
Changed-By: Holger Levsen <holger@debian.org>
 debian-edu-config - Configuration files for Skolelinux systems
Closes: 769559 769561 769806 770302 770312
 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.
 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
 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
 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

Version: GnuPG v1.4.12 (GNU/Linux)


--- End Message ---

Reply to: