Your message dated Sun, 30 Aug 2009 09:47:42 +0000 with message-id <[email protected]> and subject line Bug#542859: fixed in collectd 4.7.2-1 has caused the Debian Bug report #542859, regarding collectd's df + NFS breaks pm-suspend 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.) -- 542859: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542859 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: collectd Version: 4.6.3-1 Severity: normal In the default configuration, collectd's df plugin will collect statistics for all devices, including NFS mounts and other network filesystems. If a laptop has collectd on it and is suspended via pm-suspend with some NFS mounts, the following often happens: - Network is taken down. - collectd wakes up and calls statfs(2) on each mounted filesystem - Hangs on the NFS mount, since the network is down. - The kernel fails to suspend collectd, and the sleep fails. - Accidentially still powered on laptop melts in its bag or causes plane to crash into Hudson river. ;-) When this happens, I see this in dmesg: [12127.392595] runnable tasks: [12127.392597] task PID tree-key switches prio exec-runtime sum-exec sum-sleep [12127.392600] ---------------------------------------------------------------------------------------------------------- [12127.392669] R pm-suspend 17121 1380454.770503 94 120 0 0 0.000000 0.000000 0.000000 / [12127.392684] [12127.392720] collectd [12127.392814] [12127.392817] Restarting tasks ... done. Unmounting the network filesystems before suspend is probably wise, but it's easy to forget to do that and sometimes you just want to suspend with a network filesystem mounted, since remounting it on resume would be hard (ie, might need a password for sshfs). So this is, arguably, a bug in collectd. It would be much nicer if its default config could avoid accessing network filesystems. IMHO. Less IMHO, if I configure collectd like this: # Only list local devices, no network stuff. <Plugin df> Device "/dev/hda1" IgnoreSelected false </Plugin> It still does this. [pid 18790] statfs64("/", 84, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=7404175, f_bfree=1494139, f_bavail=1494139, f_files=3768320, f_ffree=3064836, f_fsid={-866525212, 419953648}, f_namelen=255, f_frsize=4096}) = 0 [pid 18794] read(7, "grep\0statfs\0", 4096) = 12 [pid 18790] statfs64("/lib/init/rw", 84, {f_type=0x1021994, f_bsize=4096, f_blocks=128263, f_bfree=128263, f_bavail=128263, f_files=128263, f_ffree=128258, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 [pid 18790] statfs64("/proc", 84, {f_type="PROC_SUPER_MAGIC", f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 [pid 18790] statfs64("/sys", 84, {f_type="SYSFS_MAGIC", f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 [pid 18790] statfs64("/dev", 84, {f_type=0x1021994, f_bsize=4096, f_blocks=2560, f_bfree=2524, f_bavail=2524, f_files=128263, f_ffree=127038, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 [pid 18790] statfs64("/dev/shm", 84, {f_type=0x1021994, f_bsize=4096, f_blocks=128263, f_bfree=128263, f_bavail=128263, f_files=128263, f_ffree=128262, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 [pid 18790] statfs64("/dev/pts", 84, {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 [pid 18790] statfs64("/sys/fs/fuse/connections", 84, {f_type=0x65735543, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 [pid 18790] statfs64("/home/joey/mnt", 84, {f_type=0x65735546, f_bsize=0, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=0, f_frsize=0}) = 0 And that *is* a bug, I'm sure. dh.c runs this code much later than seems to be necessary: if (ignorelist_match (il_fstype, mnt_ptr->type)) continue; if (ignorelist_match (il_mountpoint, mnt_ptr->dir)) continue; I think that should definitly be moved to above the statfs call. And then I *suggest* the default config be changed to something like: <Plugin df> FSType "nfs" IgnoreSelected true </Plugin> -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.31-rc3-486 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages collectd depends on: ii cdebconf [debconf-2.0] 0.146 Debian Configuration Management Sy ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy ii libc6 2.9-25 GNU C Library: Shared libraries ii librrd4 1.3.8-1 Time-series data storage and displ Versions of packages collectd recommends: ii iptables 1.4.4-2 administration tools for packet fi ii libatk1.0-0 1.26.0-1 The ATK accessibility toolkit ii libcairo2 1.8.8-2 The Cairo 2D vector graphics libra ii libcurl3-gnutls 7.19.5-1 Multi-protocol file transfer libra ii libdbi0 0.8.2-3 Database Independent Abstraction L ii libdbus-1-3 1.2.16-2 simple interprocess messaging syst ii libdbus-glib-1-2 0.82-1 simple interprocess messaging syst ii libesmtp5 1.0.4-2 LibESMTP SMTP client library ii libfontconfig1 2.6.0-4 generic font configuration library ii libfreetype6 2.3.9-5 FreeType 2 font engine, shared lib ii libglib2.0-0 2.20.4-1 The GLib library of C routines ii libgtk2.0-0 2.16.5-1 The GTK+ graphical user interface ii libhal1 0.5.13-3 Hardware Abstraction Layer - share ii libmysqlclient15off 5.0.84-1 MySQL database client library ii libnotify1 [libnotify1-gt 0.4.5-1 sends desktop notifications to a n ii libopenipmi0 2.0.16-1 Intelligent Platform Management In ii liboping0 1.3.2-1 C/C++ library to generate ICMP ECH ii libpango1.0-0 1.24.5-1 Layout and rendering of internatio ii libpcap0.8 1.0.0-2 system interface for user-level pa ii libperl5.10 5.10.0-25 Shared Perl library ii libpq5 8.4.0-2+b1 PostgreSQL C client library ii libsensors3 1:2.10.8-1 library to read temperature/voltag ii libsnmp15 5.4.1~dfsg-12 SNMP (Simple Network Management Pr ii libssl0.9.8 0.9.8k-4 SSL shared libraries ii libupsclient1 2.4.1-3 network UPS tools - client library ii libvirt0 0.6.5-3 library for interfacing with diffe ii libxml2 2.7.3.dfsg-2.1 GNOME XML library ii lm-sensors 1:3.1.1-3 utilities to read temperature/volt ii perl 5.10.0-25 Larry Wall's Practical Extraction ii rrdtool 1.3.8-1 Time-series data storage and displ Versions of packages collectd suggests: ii apache2-mpm-worker [httpd-cg 2.2.12-1 Apache HTTP Server - high speed th pn collectd-dev <none> (no description available) pn hddtemp <none> (no description available) ii libconfig-general-perl 2.42-1 Generic Configuration Module ii libhtml-parser-perl 3.62-1 collection of modules that parse H ii libregexp-common-perl 2.122-1 Provide commonly requested regular ii librrds-perl 1.3.8-1 Time-series data storage and displ ii liburi-perl 1.37+dfsg-1 Manipulates and accesses URI strin pn mbmon <none> (no description available) -- debconf information excluded -- see shy jo
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---Source: collectd Source-Version: 4.7.2-1 We believe that the bug you reported is fixed in the latest version of collectd, which is due to be installed in the Debian FTP archive: collectd-dbg_4.7.2-1_powerpc.deb to pool/main/c/collectd/collectd-dbg_4.7.2-1_powerpc.deb collectd-dev_4.7.2-1_all.deb to pool/main/c/collectd/collectd-dev_4.7.2-1_all.deb collectd-utils_4.7.2-1_powerpc.deb to pool/main/c/collectd/collectd-utils_4.7.2-1_powerpc.deb collectd_4.7.2-1.diff.gz to pool/main/c/collectd/collectd_4.7.2-1.diff.gz collectd_4.7.2-1.dsc to pool/main/c/collectd/collectd_4.7.2-1.dsc collectd_4.7.2-1_powerpc.deb to pool/main/c/collectd/collectd_4.7.2-1_powerpc.deb collectd_4.7.2.orig.tar.gz to pool/main/c/collectd/collectd_4.7.2.orig.tar.gz libcollectdclient-dev_4.7.2-1_powerpc.deb to pool/main/c/collectd/libcollectdclient-dev_4.7.2-1_powerpc.deb libcollectdclient0_4.7.2-1_powerpc.deb to pool/main/c/collectd/libcollectdclient0_4.7.2-1_powerpc.deb 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. Sebastian Harl <[email protected]> (supplier of updated collectd 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: SHA1 Format: 1.8 Date: Sat, 29 Aug 2009 12:42:15 +0200 Source: collectd Binary: collectd collectd-utils collectd-dbg collectd-dev libcollectdclient-dev libcollectdclient0 Architecture: source powerpc all Version: 4.7.2-1 Distribution: unstable Urgency: low Maintainer: Sebastian Harl <[email protected]> Changed-By: Sebastian Harl <[email protected]> Description: collectd - statistics collection and monitoring daemon collectd-dbg - statistics collection and monitoring daemon (debugging symbols) collectd-dev - statistics collection and monitoring daemon (development files) collectd-utils - statistics collection and monitoring daemon (utilities) libcollectdclient-dev - client library for collectd's control interface (development file libcollectdclient0 - client library for collectd's control interface Closes: 482185 534206 539467 541887 541888 541953 542859 Changes: collectd (4.7.2-1) unstable; urgency=low . * New upstream release (Closes: #541887). - collectd2html.pl now supports the creation of SVG images; thanks to Ivan Shmakov for providing a patch (Closes: #482185). New plugins: - Connection tracking table size: conntrack - Linux file-system based caching framework statistics: fscache - Receive and interpret Ganglia multicast traffic: gmond - Embedded Java Virtual Machine: java - Query and parse data from a memcache daemon: memcachec - Information about network protocols: protocols - Parse table-like structured files: table - Power consumption measurements from "The Energy Detective" (TED): ted - System uptime: uptime * debian/rules: - Install collectd-unixsock.py to /usr/share/doc/collectd/examples/. - Pass CPPFLAGS and CFLAGS as arguments to configure instead of setting them in the environment - this is the recommended way. - Pass appropriate JAVAC, JAVA_CPPFLAGS and JAVA_LDFLAGS variables to configure, using OpenJDK found in /usr/lib/jvm/java-6-openjdk. The archdir mapping used by the openjdk-6 Debian package is used to find libjvm.so in JAVA_HOME/jre/lib/ARCHDIR/server. - Use -rpath to tell the "java" plugin where to find libjvm.so. - Pass --enable-all-plugins to configure to make sure that the build fails if any prerequisites are missing. * debian/control: - Build-depend on openjdk-6-jdk. - Build-depend on libganglia1-dev (>= 3), required by the gmond plugin. - Build-depend on libgcrypt11-dev, used by the network plugin. - Updated Standards-Version to 3.8.3 (no changes). - Changed build-dependency libmysqlclient15-dev to libmysqlclient-dev - this allows transitions to be handled thru binNMUs if possible. * debian/collectd.install: - Install collectd-java.5. * debian/patches: - Removed libcollectdclient_static_sstrerror.dpatch - included upstream. - Added network-fix-cacheflush.dpatch - upstream patch to fix the handling of the 'CacheFlush' config option of the "network" plugin. - Added libvirt-reconnect.dpatch - upstream patch to let the "libvirt" plugin re-connect to libvirtd if connecting fails. - Added plugin-fix-unregister.dpatch - upstream patch to make 'plugin_unregister_read()' functional again, thus fixing a failed assertion in some cases. - Added java-fix-jvm-start.dpatch - upstream patch to fix the JVM startup. - Added bts541953-curl-followlocation.dpatch - upstream patch to let plugins using libcurl follow HTTP redirects; thanks to Joey Hess for reporting this (Closes: #541953). - Added bts535787-powerdns-fix-localsocket.dpatch - upstream patch fixing the handling of the 'LocalSocket' config option of the "powerdns" plugin; thanks to Thomas Morgan for reporting this and Luke Heberling for providing a patch (references: #535787). - Added bts542859-df-fix-ignorelist.dpatch - upstream patch to fix the handling of the ignorelist in the "df" plugin; thanks to Joey Hess for reporting this (Closes: #542859). * debian/README.Debian: - Removed the note about how to get collectd2html.pl working with version 4 of collectd - the script now supports the --recursive option which takes care of that. * debian/collectd.overrides: - Documented the 'binary-or-shlib-defines-rpath' warning - the rpath is required by the "java" plugin. * New debconf template translations: - cs.po, thanks to Martin Sin (Closes: #534206). - ru.po, thanks to Yuri Kozlov (Closes: #539467). * debian/control, debian/rules: - No not limit the "libvirt" plugin to amd64, i386, powerpc - libvirt-dev seems to be available on all architectures now. - Reintroduced a work around for #474087 (broken openipmi .pc files) by providing a fixed version of OpenIPMIpthread.pc in debian/pkgconfig and adding that path to PKG_CONFIG_PATH. Removed the version from the libopenipmi-dev build dependency for now. * debian/collectd.conf: - Set the "apache" plugin's URL according to the default used by Debian's Apache; thanks to Joey Hess for reporting this (Closes: #541888). * debian/libcollectdclient-dev.install, debian/rules: - Do not install libcollectdclient's .la file in favor of the Squeeze release goal to remove those files (for details see <http://lists.debian.org/debian-devel/2009/08/msg00783.html>). Checksums-Sha1: aac851ca69ad4d42ddcf172cd01d4025893757cc 1924 collectd_4.7.2-1.dsc b07090a29ee745e0f5193bdac1c56bb395a63b68 1544540 collectd_4.7.2.orig.tar.gz 05557a0ddc4199f8654d2fd27e5c52b99b29f922 51147 collectd_4.7.2-1.diff.gz 271c0efdac5a6498290dcefa9ecf562152186d26 792194 collectd_4.7.2-1_powerpc.deb 1e501b1e6dd340c2a4f6d53ecb660f8a13444762 58074 collectd-utils_4.7.2-1_powerpc.deb d98c6465b31a778d7cbf76651e029e909dcfa910 762428 collectd-dbg_4.7.2-1_powerpc.deb e4b804f025a52f9b02c861c8cb9aa7da03bde5e7 48530 libcollectdclient-dev_4.7.2-1_powerpc.deb 6dcda91f57cded4bc8563d3bcc68494902b34ad6 55974 libcollectdclient0_4.7.2-1_powerpc.deb d1cb95813ae2b0c9f4c22354cb9ed3390086bca0 79070 collectd-dev_4.7.2-1_all.deb Checksums-Sha256: dd53156a1d6f2b2814f2873076eda55ebf189956e22c31e356e68b9829da1b36 1924 collectd_4.7.2-1.dsc d4ec37fa5c6e7cd75ced22a8a3a9259c2f4284b024871cdee3076cd7f4475455 1544540 collectd_4.7.2.orig.tar.gz 4cc8af616d3d39ce038fedc4077d267ff64186389a9bcd9a1cc6af2d6b65de7e 51147 collectd_4.7.2-1.diff.gz 0eed39bc390abf95cb8d0576259e618f4e03efe6e05db6fa7d81e2dbda673bef 792194 collectd_4.7.2-1_powerpc.deb 90e5523c7833b2974ca518f7478530e9bc514cdd23bd665827593a74721b7a6c 58074 collectd-utils_4.7.2-1_powerpc.deb 375717e8c2a26421e57bbac3b44912f53d6e3eb5acd0c0e9def4bb3c8bb65d48 762428 collectd-dbg_4.7.2-1_powerpc.deb fd7ad48d0478a76039e8541e68aa09d237cbecdbb6f5c53dff079354a70c52d9 48530 libcollectdclient-dev_4.7.2-1_powerpc.deb fe75b8028661f6d733304654a9b7638cb47347528068d7c1cc6ba476d3783f00 55974 libcollectdclient0_4.7.2-1_powerpc.deb 8c66f6c91f9cfb039fa9db4934a4034964476c66925d14007dd663f62f74ead7 79070 collectd-dev_4.7.2-1_all.deb Files: 26045285239d463ecb4f4d4e692ec92b 1924 utils optional collectd_4.7.2-1.dsc 893c7a861b7a4a591188d9468622d89d 1544540 utils optional collectd_4.7.2.orig.tar.gz 168eb42ec2b50f004da2ea0aa1a00477 51147 utils optional collectd_4.7.2-1.diff.gz d1fc578d0e9d4f725710cd518b152546 792194 utils optional collectd_4.7.2-1_powerpc.deb ba04f4367f336e6190a6327d8105ff64 58074 utils optional collectd-utils_4.7.2-1_powerpc.deb 0e8d7eaf82c006325f388410e14d8873 762428 debug extra collectd-dbg_4.7.2-1_powerpc.deb b4701fd650b42c1ae1173f9dcfeda49e 48530 libdevel optional libcollectdclient-dev_4.7.2-1_powerpc.deb 5ac67f3a8f3898ef460ecc529165bd71 55974 libs optional libcollectdclient0_4.7.2-1_powerpc.deb 50e3853f7e833c4f15fa11c03c058c66 79070 utils optional collectd-dev_4.7.2-1_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkqaR1YACgkQEFEKc4UBx/xb1gCgi6fh+JMVv3+LN6dbzIJSY/Bf a5kAnR4YGKFCOiY8XG4VGNXocTUr87b4 =mCny -----END PGP SIGNATURE-----
--- End Message ---

