Bug 1405386
| Summary: | APIv3 doesn't correctly populate product_info.version | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Simone Tiraboschi <stirabos> |
| Component: | RestAPI | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Matyáš <pmatyas> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.1.0 | CC: | bugs, gklein, juan.hernandez, mgoldboi, mperina |
| Target Milestone: | ovirt-4.1.0-rc | Flags: | 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: | |||
4.0.6 has been the last oVirt 4.0 release, please re-target this bug. Verified on 4.1.0-9 |
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: