Bug 108116

Summary: up2date fails up2dating itself
Product: [Fedora] Fedora Reporter: Chris Ricker <chris.ricker>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED DUPLICATE QA Contact: Fanny Augustin <fmoquete>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
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 18:59:27 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 Chris Ricker 2003-10-27 18:58:42 UTC
I can't tell if this is a known bug or not...

When I up2dated (up2date --nox -u) it finished by saying

New Up2date available

When I then tried to up2date up2date, it tracebacked:

[kaboom@skuld kaboom]$ sudo up2date --nox up2date

Fetching package list for channel: rawhide...

Fetching http://ftp.redhat.com/pub/redhat/linux/rawhide//headers/header.info...
########################################

Fetching Obsoletes list for channel: rawhide...

Fetching obsoletes list for http://ftp.redhat.com/pub/redhat/linux/rawhide/...
Traceback (most recent call last):
  File "/usr/sbin/up2date", line 1187, in ?
    sys.exit(main() or 0)
  File "/usr/sbin/up2date", line 765, in main
    fullUpdate, dryRun=options.dry_run))
  File "/usr/sbin/up2date", line 1050, in batchRun
    batch.run()
  File "up2dateBatch.py", line 58, in run
  File "up2dateBatch.py", line 96, in __findPackagesToUpdate
  File "packageList.py", line 123, in run
  File "rhnPackageInfo.py", line 404, in obsoletesList
  File "rpcServer.py", line 110, in doCall
  File "repoDirector.py", line 27, in getObsoletes
  File "rpmSource.py", line 249, in getObsoletes
  File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line 293, in
getObsoletes
    pkgList = self.pkglists[channel['label']]
KeyError: rawhide
[kaboom@skuld kaboom]$

This is with 4.1.11-3 on a up2dated test3 / rawhide box

Comment 1 Chris Ricker 2003-10-27 19:03:52 UTC
After clean up, it works:

[kaboom@skuld kaboom]$ sudo rm /var/spool/up2date/*
[kaboom@skuld kaboom]$ sudo up2date --nox up2date

Fetching package list for channel: rawhide...

Fetching http://ftp.redhat.com/pub/redhat/linux/rawhide//headers/header.info...
########################################
#######################################
Fetching Obsoletes list for channel: rawhide...

Fetching obsoletes list for http://ftp.redhat.com/pub/redhat/linux/rawhide/...
#######################################
Fetching rpm headers...

Name                                    Version        Rel     
----------------------------------------------------------


The following packages you requested are already updated:
up2date
[kaboom@skuld kaboom]$ 

But it tells me up2date is already up-to-date, so now I'm confused why it ever
told me new up2date available in the first place....

Comment 2 Michael Young 2003-10-27 22:26:21 UTC
Duplicate of bug 108085.

Comment 3 Miloslav Trmac 2004-03-01 09:20:29 UTC

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

Comment 4 Red Hat Bugzilla 2006-02-21 18:59:27 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.