Bug 905398
| Summary: | ovirt-engine-backend: backend version information does not include z/micro versions. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Oded Ramraz <oramraz> |
| Component: | ovirt-engine-restapi | Assignee: | Douglas Schilling Landgraf <dougsland> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Elena <edolinin> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.2.0 | CC: | acathrow, alourie, dyasny, iheim, lpeer, mgoldboi, mpastern, oramraz, Rhev-m-bugs, sgrinber, srevivo, yeylon, ykaul, yzaslavs |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | 3.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | infra | ||
| Fixed In Version: | sf15 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-30 09:06:06 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
Oded Ramraz
2013-01-29 10:46:16 UTC
*** This bug has been marked as a duplicate of bug 904230 *** Not sure it is the same issue as in bug 904230 , here I'm talking about the version that Rest / CLI presents and not the one in about page ( which is taken from rpm ) I'm opening since i agree with you it is not the same. however, before fixing this, a decision if we are not dropping the z/micro version (major/minor/micro) should be reached. Reproduce on SF11.
REST is getting data from VdcVersion:
# select option_value from vdc_options where option_name='VdcVersion';
option_value
--------------
3.2.0.0
About window is getting from ProductRPMVersion:
# select option_value from vdc_options where option_name='ProductRPMVersion';
option_value
------------------------------------------------------
3.2.0-10.0.3.20130325gitb19951b.douglas.master.el6ev
(1 row)
For the record, python source to display version
====================================================
import urllib2
import base64
import sys
from xml.etree import ElementTree
# Example
ADDR = "192.168.122.139"
API_PORT = "443"
USER = "admin@internal"
PASSWD = "MysuperPassword"
# Setting URL
URL = "https://" + ADDR + ":" + API_PORT + "/api"
request = urllib2.Request(URL)
print "Connecting to: " + URL
base64string = base64.encodestring('%s:%s' % (USER, PASSWD)).strip()
request.add_header("Authorization", "Basic %s" % base64string)
try:
xmldata = urllib2.urlopen(request).read()
except urllib2.URLError, e:
print "Error: cannot connect to REST API: %s" % (e)
print "Try to login using the same user/pass by the Admin Portal and check the error!"
sys.exit(2)
tree = ElementTree.XML(xmldata)
list = tree.findall("product_info")
for item in list:
print item.find("name").text
print item.find("version").attrib
# python version_api.py Connecting to: https://192.168.122.135:443/api Red Hat Enterprise Virtualization Manager { 'major': '3', 'full_version': '3.2.0-10.0.63.20130329gitd3892f0.douglas.master.el6ev', 'build': '0', 'minor': '2', 'revision': '0' } From http://rhevm/api ===================== <snip> <product_info> <name>oVirt Engine</name> <vendor>ovirt.org</vendor> <version revision="0" build="0" minor="3" major="3"/> <full_version>3.3.0-0.2.master.20130410180404.fc18</full_version> </product_info> </snip> Verified in sf15: <full_version>3.2.0-10.21.master.el6ev</full_version> 3.2 has been released 3.2 has been released 3.2 has been released |