Bug 129729

Summary: up2date doesn't like yum archives
Product: Red Hat Enterprise Linux 3 Reporter: John Haxby <jch>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED DUPLICATE QA Contact: Fanny Augustin <fmoquete>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 19:05:06 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:
Bug Depends On:    
Bug Blocks: 124236    

Description John Haxby 2004-08-12 09:04:03 UTC
Description of problem:

If you configure a yum archive in /etc/sysconfig/rhn/sources for example:

   yum packages http://<hostname>/packages

and then run "up2date --dry-run --update" you'll get this backtrace:

Traceback (most recent call last):
  File "/usr/sbin/up2date", line 1174, in ?
    sys.exit(main() or 0)
  File "/usr/sbin/up2date", line 772, in main
    fullUpdate, dryRun=options.dry_run))
  File "/usr/sbin/up2date", line 1066, in batchRun
    batch.run()
  File "up2dateBatch.py", line 62, in run
  File "up2dateBatch.py", line 97, in __findPackagesToUpdate
  File "packageList.py", line 157, in addGlobs
  File "rhnPackageInfo.py", line 232, in getAvailablePackageList
  File "rhnPackageInfo.py", line 166, in availablePackageList
  File "rpcServer.py", line 304, in doCall
  File "repoDirector.py", line 20, in listPackages
  File "rpmSource.py", line 226, in listPackages
  File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line
266, in listPackages
    hdr = rd.getHeader([name,ver,rel,epoch,arch, "0",channel['label']])
  File "repoDirector.py", line 31, in getHeader
  File "rpmSource.py", line 210, in getHeader
  File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line
100, in getHeader
    hdr = rpmUtils.readHeaderBlob(hdrBuf)
TypeError: readHeaderBlob() takes exactly 2 arguments (1 given)


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

up2date-4.2.33-1, rpm-4.2.3-1

Since this is the same version of up2date that's running on a non-beta
RHEL3 machine, it looks as though it's a compatability problem with
the two versions of RPM.   If it's because I've managed to get an
up2date from the base channel instead of the beta channel and the
problem is already resolved, please accept my apologies.

Comment 1 Adrian Likins 2004-08-17 17:59:18 UTC
this will be fixed in Update 3 (4.2.33 or higher package revisions)

Comment 2 Todd Warner 2004-08-26 23:40:19 UTC

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

Comment 3 Red Hat Bugzilla 2006-02-21 19:05:06 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.