dmitest_server traceback on ARM system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
Medium
|
Jeff Lane |
Bug Description
Traceback (most recent call last):
File "/tmp/nest-
sys.
File "/tmp/nest-
universal_
File "/usr/lib/
**kwargs)
File "/usr/lib/
stdout, stderr = process.
File "/usr/lib/
stdout = self.stdout.read()
File "/usr/lib/
(result, consumed) = self._buffer_
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 2639: invalid start byte
This was the output of dmitest_server, something in dmi on this system is wonky. Need to get a dump of dmidecode to see what the deal is...
Related branches
- Sylvain Pineau (community): Approve
-
Diff: 75 lines (+32/-7)1 file modifiedbin/dmitest (+32/-7)
Changed in plainbox-provider-checkbox: | |
status: | In Progress → Fix Committed |
milestone: | none → 0.34.0 |
Changed in plainbox-provider-checkbox: | |
status: | Fix Committed → Fix Released |
The problem is some weird data in DMI from the manufacturer.
Handle 0x0007, DMI type 39, 22 bytes
Manufacturer: 3Y POWER <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><80> nfiguration
System Power Supply
Power Unit Group: 1
Location: Default string
Name: YM-2401R
Serial Number: <FF><F6>
Asset Tag: Default string
Model Part Number: YM-2401R
Revision: A
Max Power Capacity: 350 W
Status: Present, Other
Type: Switching
Input Voltage Range Switching: Wide Range
Plugged: Yes
Hot Replaceable: Yes
Handle 0x0008, DMI type 39, 22 bytes
Manufacturer: 3Y POWER <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><FF> <FF><80> nfiguration
System Power Supply
Power Unit Group: 1
Location: Default string
Name: YM-2401R
Serial Number: <FF><E4>
Asset Tag: Default string
Model Part Number: YM-2401R
Revision: A
Max Power Capacity: 350 W
Status: Present, Other
Type: Switching
Input Voltage Range Switching: Wide Range
Plugged: Yes
Hot Replaceable: Yes
When looked at in VIM, those lines look like so: ÿÿÿÿÿÿÿÿ< 80>nfiguration
Serial Number: ÿöÿÿÿÿÿÿÿÿÿÿÿÿÿ
A bunch of weird non-ascii characters
I don't think there's anything special to do here, just add some error handling to catch these DMI errors and warn the user.