SMART test script tracebacks when run on a KVM instance

Bug #1463034 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
New
Medium
Unassigned

Bug Description

This is the result of running the SMART script on a KVM instance of Ubuntu 14.04.

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

this should be handled a bit better.

Jeff Lane  (bladernr)
Changed in plainbox-provider-checkbox:
assignee: nobody → Jeff Lane (bladernr)
status: New → In Progress
Revision history for this message
Jeff Lane  (bladernr) wrote :

Unable to recreate this...

Changed in plainbox-provider-checkbox:
status: In Progress → Invalid
Revision history for this message
Jeff Lane  (bladernr) wrote :

Reopening - this has now been seen on bare metal as well.

Changed in plainbox-provider-checkbox:
assignee: Jeff Lane (bladernr) → nobody
importance: Undecided → Medium
status: Invalid → New
Revision history for this message
Jeff Lane  (bladernr) wrote :

https://certification.canonical.com/hardware/201509-19624/submission/105903/test/148/result/7786308/

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

Seen on an HP server using HPDSA

Revision history for this message
Jeff Lane  (bladernr) wrote :

When the selftest is launched manually from CLI, this is the result:

ubuntu@slight-square:~$ sudo smartctl -t short /dev/sda
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-35-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

Short offline self test failed [unsupported scsi opcode]

the script already looks for stdout and stderr, as well as returning the result code, but I wonder if smartctl is returning a 0 here...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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