Bug 744549 - [vdsm][caps] vdsm fails to start if more than a single redhat-release package are installed
Summary: [vdsm][caps] vdsm fails to start if more than a single redhat-release package...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Dan Kenigsberg
QA Contact: Jakub Libosvar
URL:
Whiteboard:
: 736001 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-09 10:37 UTC by David Naori
Modified: 2012-03-05 20:04 UTC (History)
9 users (show)

Fixed In Version: vdsm-4.9-108
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 07:29:28 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1782 0 normal SHIPPED_LIVE new packages: vdsm 2011-12-06 11:55:51 UTC

Description David Naori 2011-10-09 10:37:03 UTC
Description of problem:
when updating a host (yum update), there is an issue when 2 packages of redhat-release are installed (before yum cleans up the old package), vdsmd is restarted and fails to start.

Thread-92::DEBUG::2011-10-09 11:47:30,149::clientIF::54::vds::(wrapper) [10.35.64.13]::call getVdsCapabilities with () {}
Thread-92::ERROR::2011-10-09 11:47:30,191::caps::137::root::(osversion) failed to find version/release
Traceback (most recent call last):
  File "/usr/share/vdsm/caps.py", line 133, in osversion
    version, release = out.split()
ValueError: too many values to unpack
Thread-92::ERROR::2011-10-09 11:47:30,192::clientIF::68::vds::(wrapper) Traceback (most recent call last):
  File "/usr/share/vdsm/clientIF.py", line 58, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/clientIF.py", line 712, in getVdsCapabilities
    c = caps.get()
  File "/usr/share/vdsm/caps.py", line 173, in get
    caps['operatingSystem'] = osversion()
  File "/usr/share/vdsm/caps.py", line 139, in osversion
    __osversion = dict(release=release, version=version, name=osname)
UnboundLocalError: local variable 'release' referenced before assignment



            p = subprocess.Popen([constants.EXT_RPM, '-qf', '--qf',
                '%{VERSION} %{RELEASE}\n', '/etc/redhat-release'],
                stdin=subprocess.PIPE, stdout=subprocess.PIPE,
                stderr=subprocess.PIPE, close_fds=True)
            out, err = p.communicate()
            if p.returncode == 0:
                version, release = out.split()
            else:
                version = release = ''


Version-Release number of selected component (if applicable):
vdsm-4.9-106.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.install more then a single redhat-release package
2.
3.
  
Actual results:
vdsmd fails to start

Expected results:


Additional info:

Comment 2 Dan Kenigsberg 2011-10-09 11:41:29 UTC
fixed in

http://gerrit.usersys.redhat.com/999

Comment 4 Jakub Libosvar 2011-10-18 14:42:33 UTC
Verified in vdsm-108

Comment 5 errata-xmlrpc 2011-12-06 07:29:28 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/RHEA-2011-1782.html

Comment 6 Dan Kenigsberg 2012-03-05 20:04:56 UTC
*** Bug 736001 has been marked as a duplicate of this bug. ***


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