Bug 1405386 - APIv3 doesn't correctly populate product_info.version
Summary: APIv3 doesn't correctly populate product_info.version
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.1.0-rc
: 4.1.0
Assignee: Juan Hernández
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-16 11:08 UTC by Simone Tiraboschi
Modified: 2017-02-01 14:34 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-01 14:34:25 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+
mgoldboi: planning_ack+
juan.hernandez: devel_ack+
gklein: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 68596 0 master MERGED core: Populate V3 product_info.version.full_version 2016-12-20 08:46:31 UTC
oVirt gerrit 68773 0 ovirt-engine-4.1 MERGED core: Populate V3 product_info.version.full_version 2016-12-25 12:10:41 UTC
oVirt gerrit 69086 0 ovirt-engine-4.0 MERGED core: Populate V3 product_info.version.full_version 2016-12-25 14:02:57 UTC

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


Note You need to log in before you can comment on or make changes to this bug.