disk/smart_sda will fail on a pristine disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Provider for Plainbox - Canonical Certification (Legacy) |
Fix Released
|
High
|
Rod Smith |
Bug Description
Running certification on a Dell R530, got the following failure on disk/smart_sda :
Traceback (most recent call last): File "/tmp/nest-
Turns out this system contained a brand new disk that had never had the smart test run on it before.
In the disk_smart test, the first thing that get_smart-entries does is run "smartctl -l selftest /dev/sda", which will return 0 entries on a pristine disk, and exhibit the above failure.
Workaround is to manually run "sudo smartctl -t short /dev/sda" at least once to create an entry in the SMART selftest table.
File of my notes is attached.
Related branches
- Daniel Manrique: Approve
-
Diff: 20 lines (+2/-1)1 file modifiedproviders/plainbox-provider-checkbox/bin/disk_smart (+2/-1)
Changed in plainbox-provider-canonical-certification: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → future |
Changed in plainbox-provider-canonical-certification: | |
status: | Confirmed → In Progress |
Changed in plainbox-provider-canonical-certification: | |
milestone: | future → 0.12 |
Changed in plainbox-provider-canonical-certification: | |
status: | In Progress → Fix Committed |
Changed in plainbox-provider-canonical-certification: | |
status: | Fix Committed → Fix Released |
I took the liberty of assigning this to Rod, who recently overhauled the smart test and may be in a good position to fix this.
Rod, please let me know if you have time to look into this; if not, feel free to deassign yourself from the bug and I'll retriage it.
Cheers!