Description of problem: Some information is hidden from REST unless All-Content is set, but the header is not documented and the SDK does not support it. One example is HA score (hosted engine) of a Host. It is set in org.ovirt.engine.api.restapi.resource.BackendHostResource#doPopulate and not present in HostMapper. There is no way to get this data using Java SDK. Version-Release number of selected component (if applicable): oVirt 3.4, oVirt 3.5 components (engine, Java SDK) How reproducible: Always. Additional info: I consider HA score to be important value and I would prefer if it was always present. But that is another issue. Also the All-Content header is not properly documented anywhere and if it is then our documentation is a mess...
this ovirt bug was fixed during 3.5.1 cycle and is included in the build, and therefore should be verified.
Martin can you please provide information how I verify this bug? Also I checked python sdk(brokers.py) and class Hosts under get method still not have default parameter all_content. rhevm-3.5.1-0.1.el6ev.noarch
Artyom, this is an oVirt bug, and the fix is included in ovirt-engine-sdk-python-3.5.2.0, see bug 1194216. It will be fixed in the RHEV-M SDK when it is rebased using version 3.5.2.0 of the oVirt SDK, see bug 1196980.
mm so why build id equal to vt14, can you please check it?
Not sure. Eyal do you know why the build id in this upstream bug is vt14?
This bug can be verified requesting the RSDL document from a live engine (version 3.5.2 RC1 or newer) and checking if the RSDL document contains the description for the header. Go to the following URL: http://.../ovirt-engine/api?rsdl That XML document should contain the following: <link href="/ovirt-engine/api/hosts/{host:id}" rel="get"> <description>get the details of the specified host in the system</description> <request> <http_method>GET</http_method> <headers> <header required="false"> <name>Filter</name> <value>true|false</value> </header> <header required="false"> <name>All-Content</name> <value>true|false</value> </header> </headers> ... </request> </link> To verify the corresponding Python SDK bug 1194216 download version 3.5.2.0 and check that the method to get a host has the "all_content" parameter. Alternatively it can be verified inspecting the source code: https://github.com/oVirt/ovirt-engine-sdk/blob/3.5.2.0/src/ovirtsdk/infrastructure/brokers.py#L13283 Same for the Java SDK bug 1194218: https://github.com/oVirt/ovirt-engine-sdk-java/blob/3.5.2.0/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/Hosts.java#L194
Thanks Verified on rhevm-3.5.1-0.1.el6ev.noarch <link href="/ovirt-engine/api/hosts/{host:id}" rel="get"><description>get the details of the specified host in the system</description><request><http_method>GET</http_method><headers><header required="false"><name>Filter</name><value>true|false</value></header><header required="false"><name>All-Content</name><value>true|false</value></header></headers>
ovirt 3.5.2 was GA'd. closing current release.