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

Bug#924451: marked as done (sitesummary-client: Causes daily email from cron on machine with HW RAID)



Your message dated Sat, 06 Apr 2019 14:55:35 +0000
with message-id <E1hCmjH-0009LX-1E@fasolo.debian.org>
and subject line Bug#924451: fixed in sitesummary 0.1.43
has caused the Debian Bug report #924451,
regarding sitesummary-client: Causes daily email from cron on machine with HW RAID
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.)


-- 
924451: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=924451
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: sitesummary-client
Version: 0.1.28
Severity: important
Tags: patch

One of my machines send out a cron email every night with this message:

/etc/cron.daily/sitesummary-client:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

The source is in hdparm when collect.d/system is asking every hard drive
for information, and the HW RAID drives refuse to give out any
information.  This is what it look like for one of the disks:

# hdparm -I /dev/sdm

/dev/sdm:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0b 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

ATA device, with non-removable media
Standards:
        Likely used: 1
Configuration:
        Logical         max     current
        cylinders       0       0
        heads           0       0
        sectors/track   0       0
        --
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:           0 MBytes
        device size with M = 1000*1000:           0 MBytes 
        cache/buffer size  = unknown
Capabilities:
        IORDY not likely
        Cannot perform double-word IO
        R/W multiple sector transfer: not supported
        DMA: not supported
        PIO: pio0 
#

The following change solve the issue, by throwing away any errors from
hdparm:

diff --git a/collect.d/system b/collect.d/system
index c70447d..b36000a 100644
--- a/collect.d/system
+++ b/collect.d/system
@@ -44,7 +44,7 @@ fi
 
 # Collect hard disk information
 for diskdev in $(grep 'sd.$' /proc/partitions|awk '{print $4}'|sort); do
-    hdparm -I /dev/$diskdev || true
+    hdparm -I /dev/$diskdev 2>/dev/null || true
 done > hdparm-I
 
 # Collect zfs hard disk information too

I set severity to important for now, but it could be argued that this is
release critical, as it can fill up /var/ and cause a system error if
no-one is checking the emails regularly.

-- 
Happy hacking
Petter Reinholdtsen

--- End Message ---
--- Begin Message ---
Source: sitesummary
Source-Version: 0.1.43

We believe that the bug you reported is fixed in the latest version of
sitesummary, 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 924451@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 sitesummary 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, 06 Apr 2019 16:01:45 +0200
Source: sitesummary
Architecture: source
Version: 0.1.43
Distribution: unstable
Urgency: medium
Maintainer: Debian Edu Developers <debian-edu@lists.debian.org>
Changed-By: Holger Levsen <holger@debian.org>
Closes: 924451
Changes:
 sitesummary (0.1.43) unstable; urgency=medium
 .
   [ Petter Reinholdtsen ]
   * collect.d/system: throw away errors from hdparm to reduce noise from some
     HW RAID machines. Closes: #924451
Checksums-Sha1:
 17576609682faf84e3266ea690912157e626c4e5 1958 sitesummary_0.1.43.dsc
 0ba4358b4d20bf5efeb80e2228a87a4b7761588c 65792 sitesummary_0.1.43.tar.xz
 b6773333e1daafab73573e62073656dd0206d07d 5026 sitesummary_0.1.43_source.buildinfo
Checksums-Sha256:
 c1ba48f640edfac79c0a26f1aef24241b8bb54cf9c0bcb0c4a7c690088c2844c 1958 sitesummary_0.1.43.dsc
 91955958d3a80ffafad6f50148c2e619de4b0f84c3002c67af21af64d738b2da 65792 sitesummary_0.1.43.tar.xz
 5c6be8ec8dfb3b7c3c27c349988d551c902fc2770d5b821b0d1cafbd5c95855f 5026 sitesummary_0.1.43_source.buildinfo
Files:
 959d8eb2e8f94015a9ed2c57d1f7b9a1 1958 misc optional sitesummary_0.1.43.dsc
 68922418cb195ae666b5af8237f189f9 65792 misc optional sitesummary_0.1.43.tar.xz
 69e76868c269cdf82be9eb2e3949ad22 5026 misc optional sitesummary_0.1.43_source.buildinfo

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

iQIzBAEBCgAdFiEEuL9UE3sJ01zwJv6dCRq4VgaaqhwFAlyosXEACgkQCRq4Vgaa
qhwnvBAApuqEbkG4XoLw6mRif1EkA7Pxxj/1etG2sfmwy59anmJaC0fLjFFBadTq
4sv5ujUNRCygFQBiv+cqbV6sA9tZsID6kzmG7Ih9oEXIyqqFrxkd2QDp3XF4AZCK
IfpqwBZHG5lJNJhkNduLvQYu5SnrUt6ptLtR7MMwbrKDxVMNJ53kHJ7GGpY2fIyt
obt1mqDzIYzhfKvQwaXiJBM9XGIiNPuKvShY+a0yNT4VHygNtf1hWkLNk7V/bHF7
tGnkBrsDElfn2rYOH28xuz8gJGRC9BibXsvPlg4K7764vVW6O5gwfoyXWzkls57c
7L0UYfqV90d109emy6FGd9JOIAuoew9BXxylO1Zvr3LEGkCbstY0FhHd+HD4nONy
Ik46cYpP0LRXjtofD2PYdBe+y4/miir+yWZX6XfRiY21GfiV+/bsRcS5qyMd5k0P
2pHJqOD9o5yQH9o194jzOpFCBmwd4cO5oHax/2ePlmEWSXloOCM/TKqwjk7ECa8f
80rH2/7Sb/lknQJ2AUnbmzGIdA5bwvhL00YcIYaHtjNASSchcfSujF5y9Bbe6dgb
Nq2mKj5vF2O+GOBK2VIuUIRElaNlhD77UUFU348HbPsXhfo51exZzNzfwiLdLL7i
Pf7/fuh//vRI/fM735G9D49Xp4rNecwpsIrdtTzct7FTa/YzdcE=
=saWm
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: