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

Bug 1507098

Summary: There is no version 4.2 in capabilities when using REST API v3
Product: [oVirt] ovirt-engine Reporter: Petr Matyáš <pmatyas>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Radim Hrazdil <rhrazdil>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, lsvaty, mperina
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.0   
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: 2017-12-20 10:43:03 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 Petr Matyáš 2017-10-27 17:09:11 UTC
Description of problem:
Running
$(curl -v -u "$user@$domain:$password" -H "Content-type: application/xml" -H "Version: 3" --insecure -X GET https://$fqdn/ovirt-engine/api/capabilities | grep "<version major")

results in only 3.6, 4.0 and 4.1 versions being printed:
    <version major="3" minor="6" href="/ovirt-engine/api/capabilities/332e3633-2e36-332e-3633-2e36332e3633" id="332e3633-2e36-332e-3633-2e36332e3633">
    <version major="4" minor="0" href="/ovirt-engine/api/capabilities/332e4033-2e40-332e-4033-2e40332e4033" id="332e4033-2e40-332e-4033-2e40332e4033">
    <version major="4" minor="1" href="/ovirt-engine/api/capabilities/332e4133-2e41-332e-4133-2e41332e4133" id="332e4133-2e41-332e-4133-2e41332e4133">

where when using v4 API
$(curl -v -u "$user@$domain:$password" -H "Content-type: application/xml" -H "Version: 4" --insecure -X GET https://$fqdn/ovirt-engine/api/clusterlevels | grep "<cluster_level")

I get all supported versions (3.6, 4.0, 4.1 and 4.2):
    <cluster_level href="/ovirt-engine/api/clusterlevels/4.2" id="4.2">
    <cluster_level href="/ovirt-engine/api/clusterlevels/4.1" id="4.1">
    <cluster_level href="/ovirt-engine/api/clusterlevels/4.0" id="4.0">
    <cluster_level href="/ovirt-engine/api/clusterlevels/3.6" id="3.6">

There should be version 4.2 when using v3 API as well.

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20171025204923.git6f4cbc5.el7.centos.noarch

How reproducible:
always

Steps to Reproduce:
1. curl -v -u "$user@$domain:$password" -H "Content-type: application/xml" -H "Version: 3" --insecure -X GET https://$fqdn/ovirt-engine/api/capabilities | grep "<version major"

Actual results:
There is no version 4.2

Expected results:
There should be version 4.2

Additional info:

Comment 1 rhev-integ 2017-11-02 13:39:55 UTC
INFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[No relevant external trackers attached]

For more info please contact: infra

Comment 2 Radim Hrazdil 2017-11-16 14:11:32 UTC
Verified that version 4.2 is in capabilities for REST API version 3. Engine Version 4.2.0-0.0.master.20171108151837.gita7de53e.el7.centos

Comment 3 Sandro Bonazzola 2017-12-20 10:43:03 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.