Bug 893193 - 'vdsm.log' does not report the correct vdsm release for RHEV 3.1 versions.
Summary: 'vdsm.log' does not report the correct vdsm release for RHEV 3.1 versions.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 3.1.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: 3.2.0
Assignee: Douglas Schilling Landgraf
QA Contact: Artyom
URL:
Whiteboard: infra
: 950677 (view as bug list)
Depends On:
Blocks: 902971 948448
TreeView+ depends on / blocked
 
Reported: 2013-01-08 21:03 UTC by Gordon Watson
Modified: 2022-07-09 05:56 UTC (History)
14 users (show)

Fixed In Version: vdsm-4.10.2-18.0.el6ev
Doc Type: Bug Fix
Doc Text:
Previously, vdsm.log did not report the correct VDSM release for Red Hat Enterprise Virtualization 3.1 installations. This was problematic for people remotely troubleshooting customer installations: it was not possible to determine which version of VDSM if you used the log files as your only source of information. vdsm-4.10.2-18.0.el6ev reports the correct VDSM release in the log files.
Clone Of:
Environment:
Last Closed: 2013-06-10 20:39:30 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-47052 0 None None None 2022-07-09 05:56:16 UTC
Red Hat Product Errata RHSA-2013:0886 0 normal SHIPPED_LIVE Moderate: rhev 3.2 - vdsm security and bug fix update 2013-06-11 00:25:02 UTC
oVirt gerrit 12952 0 None None None Never
oVirt gerrit 14011 0 None None None Never

Description Gordon Watson 2013-01-08 21:03:54 UTC
Description of problem:

In a RHEV 3.1 environment, the vdsm release being used on a RHEV host is (currently) 4.9.6. The release is reported in the 'vdsm.log' as "I am the actual vdsm 4.9-x.x", as opposed to "I am the actual vdsm 4.9.6-x.x".

This is somewhat trivial. In the RHEV-M GUI the vdsm release is identified as "vdsm-4.9.6-44.1.el6_3", so there is a way of quickly determining the version of vdsm. However, when troubleshooting a customer's problem remotely, if you only have specific log files, then a quick way of determining the vdsm release is by analysing the "I am the actual vdsm" line. Also, when a LogCollector is captured, this apparently doesn't have an rpm listing included for each host. It does however contain a YUM log, which would hopefullu contain the rpm version for vdsm. So, there are ways of determining the correct release of vdsm, other than relying on the vdsm log itself. However, seeing as the vdsm log is most likely going to be one of the first places to look for a RHEV host problem, then having the correct release/version information in it would facilitate troubleshooting. As I said, this is trivial, but if it's simple to address (see 'Additional info' below) then why not fix it.


Version-Release number of selected component (if applicable):

RHEV 3.1
VDSM 4.9.6


How reproducible:

When the vdsm service is restarted the message "I am the actual vdsm" is written to the 'vdsm.log' file.


Steps to Reproduce:

1. Start vdsm service on a RHEV host.
2. Look at the 'vdsm.log'.

  
Actual results:

$ rpm -q vdsm
vdsm-4.9.6-44.1.el6_3.x86_64

$ grep software /usr/share/vdsm/dsaversion.py |grep '='
software_version = "4.9"
software_revision = "44.1"

$ grep 'I am' /var/log/vdsm/vdsm.log
:MainThread::INFO::2012-12-21 09:21:09,141::vdsm::70::vds::(run) I am the actual vdsm 4.9-44.1


Expected results:

:MainThread::INFO::2012-12-21 09:21:09,141::vdsm::70::vds::(run) I am the actual vdsm 4.9.6-44.1


Additional info:

The 'vdsm.spec.in' file contains the following lines;

# Setting software_version and software_revision in dsaversion.py
baserelease=`echo "%{release}" | sed 's/\([0-9]\+\(\.[0-9]\+\)\?\).*/\1/'`
baseversion=`echo "%{version}" | sed 's/\([0-9]\+\(\.[0-9]\+\)\?\).*/\1/'`
sed -i -e 's/^software_version =.*/software_version = "'"${baseversion}"'"/' \
       -e 's/^software_revision =.*/software_revision = "'"${baserelease}"'"/' vdsm/dsaversion.py


The 'vdsm/dsaversion.py.in' file contains;

software_version = "@PACKAGE_VERSION@"
software_revision = "@PACKAGE_RELEASE@"


If the 'baseversion' line in the 'vdsm.spec.in' file above is changed to;

  baseversion=`echo "%{version}" | sed 's/\([0-9]\+\(\.[0-9]\+\)\?\).*/\0/'`

then the following lines get generated in '/usr/share/vdsm/dsaversion.py';

  software_version = "4.9.6"
  software_revision = "44.1"

which in turn would result in 'vdsm' reporting "I am the actual vdsm 4.9.6-44.1" on a subsequent restart.

However, that seems too easy. Is there some case where this wouldn't work ???  Just me second-guessing myself.

Comment 7 Douglas Schilling Landgraf 2013-04-17 14:14:23 UTC
*** Bug 950677 has been marked as a duplicate of this bug. ***

Comment 10 Artyom 2013-05-16 06:55:48 UTC
Correct version of vdsm in vdsm.log
###
rpm -q vdsm
vdsm-4.10.2-19.0.el6ev.x86_64
###
grep 'I am' /var/log/vdsm/vdsm.log
MainThread::INFO::2013-05-16 06:50:53,737::vdsm::88::vds::(run) I am the actual vdsm 4.10.2-19.0.el6ev aqua-vds10.qa.lab.tlv.redhat.com (2.6.32-358.6.1.el6.x86_64)

Verified on:
vdsm-4.10.2-19.0.el6ev.x86_64
libvirt-0.10.2-18.el6_4.4
sf16

Comment 12 errata-xmlrpc 2013-06-10 20:39:30 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/RHSA-2013-0886.html


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