Bug 722967 - RHEV-H rpm should include a versions text file
Summary: RHEV-H rpm should include a versions text file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhev-hypervisor6
Version: 6.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Alan Pevec
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 728895
TreeView+ depends on / blocked
 
Reported: 2011-07-18 15:53 UTC by Doron Fediuck
Modified: 2016-04-26 15:10 UTC (History)
11 users (show)

Fixed In Version: rhev-hypervisor-6.2-0.6.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 728895 (view as bug list)
Environment:
Last Closed: 2011-12-06 19:18:25 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1783 0 normal SHIPPED_LIVE rhev-hypervisor6 bug fix and enhancement update 2011-12-06 15:10:54 UTC

Description Doron Fediuck 2011-07-18 15:53:11 UTC
Description of problem:
In order to identify the version of the installed ISO file,
RHEV-M backend should be able to access a text file, containing
current version and release of the installed ISO file.

The text file should be accessible to JBoss user (and maybe more).
The file format should be simple:
version,release

Additional info:
RHEV-M backend will be using this information in order to compare
with VERSION and RELEASE in /etc/default/version on running rhevh.
So the figures should be comparable.

* Please provide information on the type of VERSION and RELEASE, so we'll
know how to perform the comparison. IE- Is it integers / other?

Comment 1 Alan Pevec 2011-07-18 16:08:20 UTC
Similar request after this was modelled is for Spice version, bug 722783

Comment 2 Alan Pevec 2011-07-18 17:36:42 UTC
Put RHEV-H version info in /usr/share/rhev-hypervisor/version.txt

Resolves: rhbz#722967

--- rhev-hypervisor.spec	12 Jul 2011 16:28:58 -0000	1.44
+++ rhev-hypervisor.spec	18 Jul 2011 17:34:05 -0000
@@ -62,6 +62,7 @@
 
 %{__install} -d -m0755 %{buildroot}%{app_root}
 %{__install} -p -m0644 %{image_iso} %{buildroot}%{app_root}/%{name}.iso
+echo %{version},%{release} > %{buildroot}%{app_root}/version.txt
 %{__install} -d -m0755 %{buildroot}%{_bindir}
 %{__install} -p -m0755 %{to_pxeboot} %{buildroot}%{_bindir}/rhevh-iso-to-pxeboot
 %{__install} -p -m0755 %{to_disk} %{buildroot}%{_bindir}/rhevh-iso-to-disk
@@ -73,6 +74,7 @@
 %files
 %defattr(0644,root,root,0755)
 %{app_root}/%{name}.iso
+%{app_root}/version.txt
 %defattr(0755,root,root,0755)
 %{_bindir}/rhevh-iso-to-pxeboot
 %{_bindir}/rhevh-iso-to-disk

Comment 7 errata-xmlrpc 2011-12-06 19:18:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2011-1783.html


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