Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1351988

Summary: log-collector not collecting hypervisors data
Product: Red Hat Enterprise Virtualization Manager Reporter: Gonza <grafuls>
Component: ovirt-log-collectorAssignee: Yedidyah Bar David <didi>
Status: CLOSED WORKSFORME QA Contact: Gonza <grafuls>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.0.0CC: didi, gklein, grafuls, sbonazzo, ycui, ylavi
Target Milestone: ovirt-4.0.1Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-11 16:21:04 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:
Bug Depends On:    
Bug Blocks: 1294984    
Attachments:
Description Flags
collect log none

Description Gonza 2016-07-01 10:38:17 UTC
Description of problem:
When running log-collector on 4.0 the following error msg is displayed:

...
ERROR: Failure fetching information about hypervisors from API.
Error (ValueError): No JSON object could be decoded
ERROR: _get_hypervisors_from_api: No JSON object could be decoded
...

Version-Release number of selected component (if applicable):
rhevm-4.0.0.5-0.1.el7ev.noarch
ovirt-log-collector-4.0.0-1.el7ev.noarch

How reproducible:
100%


Steps to Reproduce:
1. run "ovirt-log-collector collect"

Actual results:
Hypervisors data is not collected

Expected results:
Hypervisors data is collected

Comment 1 Yaniv Kaul 2016-07-04 12:51:13 UTC
Are there any logs? Does it happen on RHEVH and RHEL hosts? Did it work previously?

Comment 2 Gonza 2016-07-07 10:09:48 UTC
Created attachment 1177243 [details]
collect log

Comment 3 Sandro Bonazzola 2016-07-08 10:43:55 UTC
2016-07-07 10:02:48::ERROR::hypervisors::195::root:: Failure fetching information about hypervisors from API.
Error (ValueError): No JSON object could be decoded
2016-07-07 10:02:48::ERROR::__main__::1140::root:: _get_hypervisors_from_api: No JSON object could be decoded
2016-07-07 10:02:48::INFO::__main__::1417::root:: Gathering oVirt Engine information...
2016-07-07 10:03:16::INFO::__main__::1391::root:: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
2016-07-07 10:03:19::INFO::__main__::1840::root:: No hypervisors were selected, therefore no hypervisor data will be collected.
2016-07-07 10:03:24::INFO::__main__::1843::root:: Log files have been collected and placed in /tmp/sosreport-LogCollector-20160707100319.tar.xz.

Comment 4 Yedidyah Bar David 2016-07-10 12:43:47 UTC
Works for me with current QE build:

ovirt-log-collector-4.0.0-1.el7ev.noarch
ovirt-engine-4.0.2-0.2.rc1.el7ev.noarch
python-ovirt-engine-sdk4-4.0.0-0.4.a4.el7ev.x86_64

Please attach output with the option '-v'.

Comment 5 Gonza 2016-07-11 16:21:04 UTC
I was not able to reproduce this with:
python-ovirt-engine-sdk4-4.0.0-0.0.a3.el7ev.x86_64
ovirt-log-collector-4.0.0-1.el7ev.noarch
rhevm-4.0.0.6-0.1.el7ev.noarch

My previous environment was lost and I have tried different scenarios and this has not been reproduced.