Bug 1967169 - rhv-log-collector-analyzer --json fails with AttributeError
Summary: rhv-log-collector-analyzer --json fails with AttributeError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: rhv-log-collector-analyzer
Version: 4.4.6
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ovirt-4.4.7
: 4.4.7
Assignee: Sandro Bonazzola
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-02 14:31 UTC by Guilherme Santos
Modified: 2021-07-22 15:14 UTC (History)
4 users (show)

Fixed In Version: rhv-log-collector-analyzer-1.0.10
Doc Type: No Doc Update
Doc Text:
Clone Of: 1859314
Environment:
Last Closed: 2021-07-22 15:13:32 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-2021:2865 0 None None None 2021-07-22 15:14:29 UTC

Description Guilherme Santos 2021-06-02 14:31:35 UTC
Description of problem:
# rhv-log-collector-analyzer --json
Traceback (most recent call last):
  File "/usr/bin/rhv-log-collector-analyzer-live", line 259, in <module>
    sys.exit(main())
  File "/usr/bin/rhv-log-collector-analyzer-live", line 221, in main
    info_data = info_system(cmd)
  File "/usr/bin/rhv-log-collector-analyzer-live", line 147, in info_system
    ret = info_name(cmd)
  File "/usr/lib/python3.6/site-packages/rhv_log_collector_analyzer/engine.py", line 47, in current_version
    desc_type)
  File "/usr/lib/python3.6/site-packages/rhv_log_collector_analyzer/misc.py", line 185, in query_data
    ret = ret.decode("utf-8")
AttributeError: 'str' object has no attribute 'decode'

Version-Release number of selected component (if applicable):
rhv-log-collector-analyzer-1.0.8-1.el8ev.noarch
ovirt-engine-4.4.6.6-0.10.el8ev.noarch

How reproducible:
always

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

Actual results:
fails

Expected results:
succeed

Additional info:

Comment 1 Sandro Bonazzola 2021-06-16 08:18:48 UTC
Reproduced on a clean setup with 4.4.6 released content:
rpm -qv rhv-log-collector-analyzer engine-db-query
rhv-log-collector-analyzer-1.0.8-1.el8ev.noarch
engine-db-query-1.6.3-1.el8ev.noarch

Reproduced also on 4.4.7 candidate: rhv-log-collector-analyzer-1.0.9-1.el8ev.noarch

Comment 5 Guilherme Santos 2021-06-28 18:11:32 UTC
Verified on:
ovirt-engine-4.4.7.4-0.9.el8ev.noarch

`rhv-log-collector-analyzer --json` works as expected

Comment 10 errata-xmlrpc 2021-07-22 15:13:32 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 (Moderate: RHV Manager (ovirt-engine) security update [ovirt-4.4.7]), 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-2021:2865


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