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:
Two patches required IMO: - Some changes in analyzer for py3 - engine-db-query for enconding for py3
(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
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
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