Comment 5 for bug 1773150

Revision history for this message
Eduardo Pérez (eperezf) wrote : Re: [2.4.0~rc1] smartctl verify fails due to Unicode in Disk Vendor Name

I'm having this same problem as well.

Testing through MAAS gives the error:
-----------------------------------------

INFO: Veriying SMART support for the following drive: /dev/sdb

INFO: Running command: sudo -n smartctl --all /dev/sdb

Traceback (most recent call last):

  File "/tmp/user_data.sh.cWbGJt/scripts/testing/smartctl-validate", line 189, in <module>

    sys.exit(run_smartctl(args.storage, test))

  File "/tmp/user_data.sh.cWbGJt/scripts/testing/smartctl-validate", line 143, in run_smartctl

    check_SMART_support(storage)

  File "/tmp/user_data.sh.cWbGJt/scripts/testing/smartctl-validate", line 85, in check_SMART_support

    match = smart_support_regex.search(output.decode('utf-8'))

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 373: invalid start byte

-------------------------

When I run sudo -n smartctl --all /dev/sdb via SSH it says no errors but in the Information Section the Add. Product ID is DELL�.

That's a very weird value. I'm running a Dell PowerEdge 1950 server with 2 drives: a Western Digital (the one that throws that error) and a Seagate one that passes without problems.