Report tool traceback on utf-8 decode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Brief Description
-----------------
The Report Tool did a utf-8 UnicodeDecodeError traceback while analyzing a bundle.
Code should have a try/except block in this path.
Severity
--------
Major if it happens.
Steps to Reproduce
------------------
report.py -d <path to bundle>
Expected Behavior
------------------
Report analysis completes without execution error.
Actual Behavior
----------------
Report analysis is incomplete.
Reproducibility
---------------
Seen on one collect bundle.
System Configuration
-------
suspect System Controller
Branch/Pull Time/Commit
-------
Any prior to this issue being resolved. June 4th, 2024 time frame.
Last Pass
---------
Tool needs to handle string parsing case better
Timestamp/Logs
--------------
Traceback (most recent call last):
File "/folk/
engine.
File "/folk/
plugin.
File "/folk/
data = substring(start, end, daemon_substrings, daemon_files, exclude_list)
File "/folk/
status = _continue(start, end, file)
File "/folk/
line = f.readline()
File "/usr/local/
return codecs.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6363: ordinal not in range(128)
Test Activity
-------------
PV
Workaround
----------
Analyze bundle manually.
No easy workaround.
Issue will be fixed soon. Pull new content.
Fix proposed to branch: master /review. opendev. org/c/starlingx /utilities/ +/921081
Review: https:/