Bug 1626160

Summary: The engine fails to fetch host statistics with "Unexpected return value: Status [code=-32603, message=Internal JSON-RPC error: {'reason': '[Errno 22] Invalid argument'}]"
Product: [oVirt] ovirt-engine Reporter: Simone Tiraboschi <stirabos>
Component: BLL.InfraAssignee: Ravi Nori <rnori>
Status: CLOSED WORKSFORME QA Contact: Lukas Svaty <lsvaty>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: bugs, mperina, stirabos
Target Milestone: ---   
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: 2018-09-19 13:08:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Simone Tiraboschi 2018-09-06 17:00:15 UTC
Description of problem:
The engine fails to fetch host statistics with "Unexpected return value: Status [code=-32603, message=Internal JSON-RPC error: {'reason': '[Errno 22] Invalid argument'}]"

an example is visible here:
https://jenkins.ovirt.org/job/ovirt-system-tests_he-basic-ansible-suite-master/606/artifact/exported-artifacts/test_logs/he-basic-ansible-suite-master/post-012_local_maintenance_sdk.py/lago-he-basic-ansible-suite-master-engine/_var_log/ovirt-engine/engine.log

No trace of that in vdsm logs.

Version-Release number of selected component (if applicable):


How reproducible:
seen on CI

Steps to Reproduce:
1. ?
2.
3.

Actual results:
an infinite loop of
2018-09-06 10:48:16,888-04 ERROR [org.ovirt.engine.core.vdsbroker.monitoring.HostMonitoring] (EE-ManagedThreadFactory-engineScheduled-Thread-5) [] Unable to GetStats: VDSErrorException: VDSGenericException: VDSErrorException: Failed to Get Host Statistics, error = Internal JSON-RPC error: {'reason': '[Errno 22] Invalid argument'}, code = -32603
2018-09-06 10:48:25,066-04 WARN  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStatsAsyncVDSCommand] (EE-ManagedThreadFactory-engineScheduled-Thread-11) [] Unexpected return value: Status [code=-32603, message=Internal JSON-RPC error: {'reason': '[Errno 22] Invalid argument'}]
2018-09-06 10:48:25,066-04 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStatsAsyncVDSCommand] (EE-ManagedThreadFactory-engineScheduled-Thread-11) [] Failed in 'Get Host Statistics' method
2018-09-06 10:48:25,066-04 WARN  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStatsAsyncVDSCommand] (EE-ManagedThreadFactory-engineScheduled-Thread-11) [] Unexpected return value: Status [code=-32603, message=Internal JSON-RPC error: {'reason': '[Errno 22] Invalid argument'}]

Expected results:
the engine correctly fetches host statistics

Additional info:

Comment 1 Martin Perina 2018-09-19 11:27:37 UTC
Simone, is this error still reproduced? Unfortunately the original logs are no longer available and I can see in last 3 days HE suite finished successfully

Comment 2 Simone Tiraboschi 2018-09-19 13:08:23 UTC
(In reply to Martin Perina from comment #1)
> Simone, is this error still reproduced? Unfortunately the original logs are
> no longer available and I can see in last 3 days HE suite finished
> successfully

Yes, now it seams fine. Thanks.