Bug 238934 - up2date-4.5.5-6.el4: repomd fails with type errors.
Summary: up2date-4.5.5-6.el4: repomd fails with type errors.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: up2date
Version: 4.5
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Beth Nackashi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-05-03 22:54 UTC by Aleksey Nogin
Modified: 2007-11-17 01:14 UTC (History)
0 users

Fixed In Version: RHBA-2007-0815
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-15 16:34:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
/var/log/up2date (7.48 KB, text/plain)
2007-05-22 16:28 UTC, Aleksey Nogin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0815 0 normal SHIPPED_LIVE up2date bug fix update 2007-11-14 18:26:51 UTC

Description Aleksey Nogin 2007-05-03 22:54:24 UTC
After upgrading to up2date-4.5.5-5.el4, up2date fails with 

An error has occurred:
exceptions.TypeError
See /var/log/up2date for more informatio

that only goes away if I comment out the repomd line in my
/etc/sysconfig/rhn/sources.

Debugging with pdb revealed that the error happens in the call to
listAllPackages on line 240 of /usr/share/rhn/up2date_client/rpmSource.py. Namely:

> /usr/share/rhn/up2date_client/rpmSource.py(239)listAllPackages()
-> source = self.metainfo[source_key]
(Pdb) p source_key
'repomd'
(Pdb) p source
<up2date_client.rpmSource.DiskCache instance at 0xb77aa20c>
(Pdb) n
> /usr/share/rhn/up2date_client/rpmSource.py(240)listAllPackages()
-> packageList = source.listAllPackages(channel,
(Pdb) p source
<up2date_client.repoBackends.repomdRepo.RepomdDiskCache instance at 0xb77aa2cc>
(Pdb) s
> /usr/share/rhn/up2date_client/rpmSource.py(241)listAllPackages()
-> msgCallback, progressCallback)
(Pdb) s
TypeError: 'listAllPackages() takes exactly 1 argument (4 given)'
> /usr/share/rhn/up2date_client/rpmSource.py(241)listAllPackages()
-> msgCallback, progressCallback)

Comment 1 Todd Sanders 2007-05-22 14:44:36 UTC
Please attach your /etc/sysconfig/rhn/sources file, as well as your
/var/log/up2date log for diagnosis.

Comment 2 Aleksey Nogin 2007-05-22 16:27:37 UTC
(In reply to comment #1)
> Please attach your /etc/sysconfig/rhn/sources file

I see the error with just

up2date default
repomd none none

or

up2date default
repomd atrpms-el4 http://dl.atrpms.net/el4-i386/atrpms/stable

(it does not seem to matter what I put after the "repomd")

> as well as your /var/log/up2date log for diagnosis.

Will do.


Comment 3 Aleksey Nogin 2007-05-22 16:28:08 UTC
Created attachment 155176 [details]
/var/log/up2date

Comment 4 Pradeep Kilambi 2007-07-28 00:03:09 UTC
fixed.. we needed allavailablepackages only for scheduled actions .. should be
fixed now

Comment 8 errata-xmlrpc 2007-11-15 16:34:17 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0815.html



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