Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 461251

Summary: RHEL 5.1 full install can't be updated
Product: Red Hat Enterprise Linux 5 Reporter: Rolf Kyburz <rolf.kyburz>
Component: yum-rhn-pluginAssignee: John Matthews <jmatthew>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1CC: pkilambi
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-18 18:42:30 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 Rolf Kyburz 2008-09-05 11:18:17 UTC
I'm rying to find out how our customers running RHEL 5.1 can possibly update their installation to current level. I installed RHEL 5.1, selecting ALL components, then ran the Software Updater utility (up2date, presumably); this downloaded the RPM headers, but then failed with the error message below. I know I can install 5.2 OK, but I'd like to find a solution for our customers that does NOT involve reinstalling the OS.

Component: Software Updater
Summary: TBd05087db rhnplugin.py:298:_noExceptionWrappingGet:UnboundLocalError: local variable 'result' referenced before assignment

Traceback (most recent call last):
  File "/usr/sbin/pup", line 438, in _apply
    self.applyChanges(self.mainwin)
  File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 557, in applyChanges
    self.checkDeps(mainwin)
  File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 322, in checkDeps
    self.populateTs(keepold=0)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 153, in populateTs
    self.downloadHeader(txmbr.po)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 760, in downloadHeader
    cache=repo.http_caching != 'none',
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 461, in getHeader
    cache=cache,
  File "/usr/lib/yum-plugins/rhnplugin.py", line 209, in _getFile
    start, end, copy_local, checkfunc, text, reget, cache)
  File "/usr/lib/yum-plugins/rhnplugin.py", line 298, in _noExceptionWrappingGet
    return result
UnboundLocalError: local variable 'result' referenced before assignment

Local variables in innermost frame:
remote: https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-client-5/getPackage/kdelibs-3.5.4-16.el5.i386.rpm
start: 440
url: None
text: None
self: rhel-x86_64-client-5
cache: True
reget: None
server: https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-client-5
relative: getPackage/kdelibs-3.5.4-16.el5.i386.rpm
headers: (('X-RHN-Auth-Expire-Offset', '3600.0'), ('X-RHN-Auth-User-Id', ''), ('X-RHN-Auth', 'a9GNi6ffm8Ynx9TIxmOjPw=='), ('X-RHN-Auth-Server-Time', '1220612056.76'), ('X-RHN-Server-Id', 1013687603))
checkfunc: (<bound method PackageUpdater.verifyHeader of <__main__.PackageUpdater object at 0x1f4e7690>>, (<yum.sqlitesack.YumAvailablePackageSqlite instance at 0x208de6c8>, 1), {})
copy_local: 1
end: 607984
local: //var/cache/yum/rhel-x86_64-client-5/headers/kdelibs-3.5.4-16.el5.i386.hdr

Comment 1 John Matthews 2008-09-18 18:42:30 UTC

*** This bug has been marked as a duplicate of bug 428323 ***