Description of problem: # rhv-log-collector-analyzer --json 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 213, in execute knowledge_base=knowledge_base File "/usr/lib/python3.6/site-packages/engine_db_query/__init__.py", line 383, in query_return_json s=hashlib.sha256(file_name).hexdigest(), TypeError: Unicode-objects must be encoded before hashing b'' Version-Release number of selected component (if applicable): rhv-log-collector-analyzer-1.0.2-1.el8ev.noarch ovirt-engine-4.4.1.8-0.7.el8ev.noarch How reproducible: always Steps to Reproduce: 1. # rhv-log-collector-analyzer --json 2. 3. Actual results: fails Expected results: succeed Additional info:
too late for 4.4.2, isn't it?
(In reply to Michal Skrivanek from comment #2) > too late for 4.4.2, isn't it? right, sad to have to postpone a bug because of technical issues preventing patches being merged.
Verified on: rhv-log-collector-analyzer-1.0.5-1.el8ev.noarch ovirt-engine-4.4.3-0.1.el8ev.noarch Steps: # rhv-log-collector-analyzer --json Results: Run went fine and json generated successfully
Hi Sandro, please review this doc text for the errata and release notes: Previously, unicode strings were not handled properly by the rhv-log-collector-analyzer after porting to python3. In this release, unicode strings are now handled properly.
(In reply to Eli Marcus from comment #8) > Hi Sandro, please review this doc text for the errata and release notes: > > Previously, unicode strings were not handled properly by the > rhv-log-collector-analyzer after porting to python3. > In this release, unicode strings are now handled properly. Looks good to me.
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 (Low: Red Hat Virtualization 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:5179