SMART test crashes on some systems that don't support SMART

Bug #1484981 reported by Rod Smith
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
plainbox-provider-checkbox (Ubuntu)
Fix Released
Undecided
Rod Smith

Bug Description

The SMART test can crash on disks that don't support SMART, with output like the following:

Traceback (most recent call last):
  File "/tmp/nest-yqaayt2d.8b76b98c54ecc796fe034dc492233d83c30e6c1aa9f5536597a452889fee630d/disk_smart", line 321, in <module>
    sys.exit(main())
  File "/tmp/nest-yqaayt2d.8b76b98c54ecc796fe034dc492233d83c30e6c1aa9f5536597a452889fee630d/disk_smart", line 293, in main
    previous_entries, returncode = get_smart_entries(disk)
  File "/tmp/nest-yqaayt2d.8b76b98c54ecc796fe034dc492233d83c30e6c1aa9f5536597a452889fee630d/disk_smart", line 168, in get_smart_entries
    line = next(stdout_lines)
StopIteration

This was observed on a test of an HP BL460c Gen8; specifically, https://certification.canonical.com/hardware/201309-14182/submission/105511/.

Related branches

Rod Smith (rodsmith)
Changed in plainbox-provider-checkbox (Ubuntu):
assignee: nobody → Roderick Smith (rodsmith)
Jeff Lane  (bladernr)
Changed in plainbox-provider-checkbox (Ubuntu):
status: New → Fix Committed
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
Changed in plainbox-provider-checkbox (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.