disk_smart needs to catch a new unsupported case
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Triaged
|
Medium
|
Unassigned |
Bug Description
there are some test results showing disk_smart failing on some disks. The reason seems to be that there's a different output possible in the logs that is not accounted for in the script when looking for errors. So far, I know of two different outputs that signify a storage device does not support SMART:
The following shows a case where SMART is not supported, and the test properly detects this and exits properly, showing a WARNING in the results like such:
disk/smart_sdb certification Pass WARNING SMART not available on /dev/sdb
manson@ubuntu:~$ sudo smartctl -l selftest /dev/sdb
smartctl 5.41 2011-06-09 r3365 [x86_64-
Copyright (C) 2002-11 by Bruce Allen, http://
Device does not support Self Test logging
This next example was recently seen on some serves with RAID devices. This is the case that is NOT properly handled and triggers a false failure in the results like such:
disk/smart_sda certification Fail INFO Starting SMART self-test on /dev/sda ERROR Error reported during smartctl test
manson@ubuntu:~$ sudo smartctl -l selftest /dev/sda
smartctl 5.41 2011-06-09 r3365 [x86_64-
Copyright (C) 2002-11 by Bruce Allen, http://
=== START OF READ SMART DATA SECTION ===
SMART Self-test Log not supported
The test script keys in on the "START OF READ" line and assumes that means testing is underway...
affects: | checkbox → plainbox-provider-checkbox |
I haven't witnessed this myself, but there's enough evidence gathered here to clearly demonstrate that this is in fact an issue. Also assigning the usual importance for a test failure.