Bug 1832161 - rhv-log-collector-analyzer fails with UnicodeDecodeError on RHEL8
Summary: rhv-log-collector-analyzer fails with UnicodeDecodeError on RHEL8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: rhv-log-collector-analyzer
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.4.1
: ---
Assignee: Douglas Schilling Landgraf
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-06 08:53 UTC by Guilherme Santos
Modified: 2020-08-04 13:23 UTC (History)
4 users (show)

Fixed In Version: rhv-log-collector-analyzer-1.0.2-1
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-04 13:22:48 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:3247 0 None None None 2020-08-04 13:23:02 UTC

Description Guilherme Santos 2020-05-06 08:53:16 UTC
Description of problem:
When running rhv-log-collector-analyzer in RHEL8 for RHV 4.4, it fails with the following UnicodeDecodeError:

# rhv-log-collector-analyzer
Generating reports:
===================
Traceback (most recent call last):
  File "/usr/bin/engine-db-query", line 280, in <module>
    sys.exit(main())
  File "/usr/bin/engine-db-query", line 272, in main
    knowledge_base=args.kb_url
  File "/usr/lib/python3.6/site-packages/engine_db_query/__init__.py", line 179, in execute
    statement = f.read().strip()
  File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1535: ordinal not in range(128)

Version-Release number of selected component (if applicable):
rhv-log-collector-analyzer-1.0.0-1.el8ev.noarch

How reproducible:
always

Steps to Reproduce:
1. # rhv-log-collector-analyzer
2.
3.

Actual results:
UnicodeDecodeError

Expected results:
works

Additional info:

Comment 1 Douglas Schilling Landgraf 2020-05-13 16:17:20 UTC
Two patches required IMO:

- Some changes in analyzer for py3
- engine-db-query for enconding for py3

Comment 2 Douglas Schilling Landgraf 2020-05-13 16:17:40 UTC
(In reply to Douglas Schilling Landgraf from comment #1)
> Two patches required IMO:
> 
> - Some changes in analyzer for py3
> - engine-db-query for enconding for py3

https://github.com/oVirt/engine-db-query/commit/52152fcaef5fd81a1819a9549c23c08417d16869

Comment 4 Guilherme Santos 2020-07-09 11:19:56 UTC
Verified on:
rhv-log-collector-analyzer-1.0.2-1.el8ev.noarch
ovirt-engine-4.4.1.7-0.3.el8ev.noarch

Steps:
1. # rhv-log-collector-analyzer

Results:
Works as expected

Comment 7 errata-xmlrpc 2020-08-04 13:22:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:3247


Note You need to log in before you can comment on or make changes to this bug.