Created attachment 1398217 [details] engine logs Description of problem: while calling: curl -k -X GET -u "admin@internal:<password>" -H "Content-type: application/xml" -H "Accept: application/xml" https://<host>/ovirt-engine/api/hosts?follow=statistics I get as a result an internal server error. In engine log I see this: 2018-02-20 13:17:36,288+01 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-113) [] Operation Failed: null 2018-02-20 13:17:36,288+01 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-113) [] Exception: java.lang.NullPointerException at org.ovirt.engine.api.restapi.resource.HostStatisticalQuery.getStatistics(HostStatisticalQuery.java:63) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.resource.HostStatisticalQuery.getStatistics(HostStatisticalQuery.java:13) [restapi-jaxrs.jar:] at org.ovirt.engine.api.restapi.resource.BackendStatisticsResource.list(BackendStatisticsResource.java:44) [restapi-jaxrs.jar:] Version-Release number of selected component (if applicable): ovirt-engine-4.2.2-0.0.master.20180108193417.git45b0275.el7.centos.noarch Additional info: It did work on my local setup so it must be something specific with the setup.
btw it is happening because of this host ob brq-dev: https://brq-dev.rhev.lab.eng.brq.redhat.com/ovirt-engine/api/hosts/68c74cda-6580-474e-afd8-a34e23749cb1?follow=statistics
Verified that using the API request in the description doesn't lead to Nullpointer Exception. Software Version:4.2.2.2-0.1.el7
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.