Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 744549

Summary: [vdsm][caps] vdsm fails to start if more than a single redhat-release package are installed
Product: Red Hat Enterprise Linux 6 Reporter: David Naori <dnaori>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED ERRATA QA Contact: Jakub Libosvar <jlibosva>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2CC: abaron, bazulay, cpelland, hateya, iheim, jlibosva, mgoldboi, rvaknin, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: vdsm-4.9-108 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 07:29:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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. ***