| 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: | vdsm | Assignee: | Dan Kenigsberg <danken> |
| Status: | CLOSED ERRATA | QA Contact: | Jakub Libosvar <jlibosva> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2 | CC: | 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: | |
fixed in http://gerrit.usersys.redhat.com/999 Verified in vdsm-108 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 *** Bug 736001 has been marked as a duplicate of this bug. *** |
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: