Bug 1882702

Summary: rhv-analyzer-insights failed to run on 4.4.2 engine
Product: Red Hat Enterprise Virtualization Manager Reporter: Pavol Brilla <pbrilla>
Component: ovirt-engine-db-queryAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4.2   
Target Milestone: ovirt-4.4.3   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: engine-db-query-1.6.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-25 14:12:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavol Brilla 2020-09-25 11:31:35 UTC
Description of problem:
rhv-analyzer-insights failed to do anything, it crashed during invocation...

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

How reproducible:
100

Steps to Reproduce:
1. Register system to CDN, install engine
2. Prepare system for insights
3. invoke rhv-analyzer-insights to upload logs to insights

Actual results:
rhv-analyzer-insights  is failing to run

Expected results:
see data in insights portal

Additional info:
# rhv-analyzer-insights
Executing rhv-log-collector-analyzer...
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"b''\n"

Comment 1 Sandro Bonazzola 2020-09-25 14:12:50 UTC
closing as duplicate of bug #1866981

*** This bug has been marked as a duplicate of bug 1866981 ***