ipmi_test crashes when ipmi_config output is not utf-8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Expired
|
Medium
|
Jeff Lane | ||
MAAS |
Incomplete
|
Medium
|
Unassigned |
Bug Description
We have some servers which have non utf-8 bytes in ipmi-config output and cause ipmi_test to crash
The non utf-8 is in Lan_Conf_
$ sudo /usr/sbin/
Section Lan_Conf_
## Give string or blank to clear. Max 20 chars
K_R Ӷ:,ء�Z��*�N��
## Give string or blank to clear. Max 20 bytes, prefix with 0x to enter hex
K_G 0x0000000000000
EndSection
Traceback (most recent call last):
File "/tmp/nest-
sys.
File "/tmp/nest-
results = ipmi_test.
File "/tmp/nest-
self.
File "/tmp/nest-
self.
File "/tmp/nest-
output = self._subproc_
File "/tmp/nest-
output, error = process.
File "/usr/lib/
stdout, stderr = self._communica
File "/usr/lib/
self.
File "/usr/lib/
data = data.decode(
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 21281: invalid continuation byte
Changed in plainbox-provider-checkbox: | |
assignee: | nobody → Jeff Lane (bladernr) |
importance: | Undecided → Medium |
status: | New → In Progress |
milestone: | none → 0.55.0 |
tags: | added: servcert-221 |
tags: | added: sts |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in maas: | |
status: | Incomplete → New |
status: | New → Incomplete |
Manually decode it as cp437 can solve this issue. Please see the attachment