Bug 1405386

Summary: APIv3 doesn't correctly populate product_info.version
Product: [oVirt] ovirt-engine Reporter: Simone Tiraboschi <stirabos>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs, gklein, juan.hernandez, mgoldboi, mperina
Target Milestone: ovirt-4.1.0-rcFlags: rule-engine: ovirt-4.1+
mgoldboi: planning_ack+
juan.hernandez: devel_ack+
gklein: testing_ack+
Target Release: 4.1.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-02-01 14:34:25 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 2016-12-16 11:08:20 UTC
Description of problem:
APIv3 doesn't correctly populate product_info.version

This snippet can be used to reproduce the issue:
 import ovirtsdk.api
 
 fqdn='enginevm.localdomain'
 username='admin@internal'
 password='password'
 
 engine_api = ovirtsdk.api.API(
     url='https://{fqdn}/ovirt-engine/api'.format(
         fqdn=fqdn,
     ),
     username=username,
     password=password,
     insecure=True,
 )
 
 print(engine_api.get_product_info().version.full_version)
 print(engine_api.get_product_info().get_full_version())


Which prints
None
4.1.0-0.2.master.20161210231201.git26a385e.el7.centos

so the user has to use different code to check the engine version against different engine versions.


Version-Release number of selected component (if applicable):
4.1.0-0.2.master.20161210231201.git26a385e.el7.centos

How reproducible:
100%

Steps to Reproduce:
1. run the attached script
2.
3.

Actual results:
the user has to use different code to check the engine version against different engine versions

Expected results:
engine_api.get_product_info().version.full_version should work

Additional info:

Comment 1 Sandro Bonazzola 2017-01-25 07:54:41 UTC
4.0.6 has been the last oVirt 4.0 release, please re-target this bug.

Comment 2 Petr Matyáš 2017-01-26 10:20:53 UTC
Verified on 4.1.0-9