Bug 622376

Summary: KeyError: <pyanaconda.yuminstall.AnacondaYumRepo object at 0x7f0edfb98390>
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bblaskov, benedictus, christoferbertonha, cra, dmach, fred.new2911, jlaska, jonathan, liebundartig, linux, poelstra, rct+redhat, redhat, richardfearn, rvykydal, smooge, tflink, vanmeeuwen+fedora, zcerza
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:a7ab76ad320a303faded54897632dbd3b25cfc4937144bd90c6d14d4f7f751f0
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-03 19:25:48 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:
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda. none

Description Jens Petersen 2010-08-09 06:31:33 UTC
The following was filed automatically by anaconda:
anaconda 14.15 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 233, in _sql_MD
    cache = getattr(self.sack, MD + 'db')[self.repo]
  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 46, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 388, in returnPrco
    cur = self._sql_MD('primary', sql, (self.pkgKey,))
  File "/usr/lib/python2.7/site-packages/yum/packageSack.py", line 868, in _delPackageFromIndex
    for (n, fl, (e,v,r)) in obj.returnPrco('obsoletes'):
  File "/usr/lib/python2.7/site-packages/yum/packageSack.py", line 888, in delPackage
    self._delPackageFromIndex(obj)
  File "/usr/lib/python2.7/site-packages/yum/transactioninfo.py", line 300, in remove
    self._inSack.delPackage(txmbr.po)
  File "/usr/lib/python2.7/site-packages/yum/transactioninfo.py", line 697, in remove
    TransactionData.remove(self, pkgtup)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/sortedtransaction.py", line 87, in remove
    SortableTransactionData.remove(self, pkgtup)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/yuminstall.py", line 1332, in resetPackageSelections
    self.ayum.tsInfo.remove(txmbr.pkgtup)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/backend.py", line 294, in doBasePackageSelect
    anaconda.backend.resetPackageSelections()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 212, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/dispatch.py", line 131, in gotoNext
    self.moveStep()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/gui.py", line 1174, in nextClicked
    self.anaconda.dispatch.gotoNext()
KeyError: <pyanaconda.yuminstall.AnacondaYumRepo object at 0x7f0edfb98390>

Comment 1 Jens Petersen 2010-08-09 06:31:39 UTC
Created attachment 437526 [details]
Attached traceback automatically from anaconda.

Comment 2 Radek Vykydal 2010-08-09 13:40:42 UTC
This seems similar to bug #505189
only that now the stale repo references after going back and forth in repo UI (through reposetup step) would come not from user edited/added repo but from elsewhere (failed updates/testing repo?).

Comment 3 Radek Vykydal 2010-08-09 14:54:34 UTC
Jens, are you able to reproduce the issue? My suspicion is that it is related to going back in repo UI and failure of Updates Testing repository. Can you also describe the actions in repo UI you did (enabling/disabling/adding/editing repositiories) and error messages you were seeing (if there were any). What media did you use? DVD?

Comment 4 Jens Petersen 2010-08-10 07:18:51 UTC
Yes that is basically right: currently F14 anaconda enables testing
repo by default - but it had broken deps.  So Back, disable testing repo
and forward and anaconda made this backtrace.

Comment 5 Radek Vykydal 2010-08-25 13:31:55 UTC
I have a hacky patch for this one:
https://www.redhat.com/archives/anaconda-devel-list/2010-August/msg00140.html

To deal with "go back after creating of transaction and then disable a repo in UI" situation cleanly, big parts of repositories handling would need to be rewritten. Basically it would mean moving tasksel (which is also repo edit) UI step before reposetup step. I want to look at it, but it seems tough.

Comment 6 Brad Watson 2010-08-26 03:51:28 UTC
Created an attachment (id=441103)
Attached traceback automatically from anaconda.

Comment 7 Brad Watson 2010-08-26 03:58:31 UTC
I added the F14-Alpha x86_64 repo at first. This reported dependency problems. So I went BACK and unselected F14-Alpha x86_64 which left just the original Installation Repo selected. This then resulted in the crash.

Comment 8 Ben Lambrechts 2010-08-27 10:19:38 UTC
Created an attachment (id=441460)
Attached traceback automatically from anaconda.

Comment 9 Christofer Bertonha 2010-09-13 02:45:14 UTC
Created an attachment (id=446825)
Attached traceback automatically from anaconda.

Comment 10 Fred New 2010-09-30 09:32:26 UTC
Created attachment 450702 [details]
Attached traceback automatically from anaconda.

Comment 11 Fred New 2010-09-30 09:57:24 UTC
This is still here in the F14 Beta.  It's a major inconvenience since this was a hard disk installation.  The iso image is still on the hard disk, but with /boot formatted, there's no way to boot the installation again.  (Grumbly message about having to use Windows to download and create a CD.)  I'm thinking this should have a little higher priority, if not blocking status.  I don't think you can guarantee that this won't happen after the repositories are sorted out.

With regard to the sequence of events, the gnome-panel package was lacking the dependency lib<maybe-something>ui<something>.  I didn't think I wanted to install gnome-panel without this dependency, so I went back and turned off the testing-updates repository.

Comment 12 Brian Lane 2010-09-30 13:40:56 UTC
Did you try Radek's patch from comment 5?

Comment 13 Fred New 2010-09-30 14:20:03 UTC
No, this was my first pass.  I assume you're asking me to rebuild the ISO.  Never done that before.  I would be willing to experiment if you gave me some pointers (like in the Fedora Project wiki).

Comment 14 Radek Vykydal 2010-09-30 14:28:03 UTC
(In reply to comment #13)
> No, this was my first pass.  I assume you're asking me to rebuild the ISO. 
> Never done that before.  I would be willing to experiment if you gave me some
> pointers (like in the Fedora Project wiki).

Hold on, I'll post updates image for F14 beta.

Comment 15 Radek Vykydal 2010-09-30 14:36:49 UTC
(In reply to comment #14)

> 
> Hold on, I'll post updates image for F14 beta.

It is here:

http://rvykydal.fedorapeople.org/updates.conflict_back.img
 
You can use it by adding:

updates=http://rvykydal.fedorapeople.org/updates.conflict_back.img

to boot parameters.

See http://fedoraproject.org/wiki/Anaconda/Updates if you are interested in details.

Comment 16 Fred New 2010-10-01 11:13:19 UTC
Unfortunately, we don't have any broken dependencies in updates-testing today and my system started installing without having to go back to uncheck the bad repository.  I can try again Monday.

By the way, since GRUB starts my hard disk installation, it was easy to copy and paste that long updates= line to the boot parameters in grub.conf.

Comment 17 Fred New 2010-10-06 08:55:40 UTC
I'm still waiting for updates-testing to be broken.  Maybe this problem isn't as serious as I thought it was.  I was mostly concerned about ending up with a non-booting computer, but people who run hard-disk installations like I do probably know how to recover.

Perhaps rather than being able to go back to turn off repositories, the final installation process could use a --skip-broken parameter.

Comment 18 James Laska 2010-10-14 19:51:27 UTC
Created attachment 453544 [details]
Attached traceback automatically from anaconda.

Comment 19 Fred New 2010-10-15 11:27:04 UTC
I ran a couple installations today and it looks like the patch mentioned in comment 5 and comment 15 works.  During the first installation I learned where the last point was where I could start going "back".

During the second installation, I went back to the repositories page several times without any problems.  My system still got installed without leaving me with a non-bootable hard disk like I originally complained about.  This is an acceptable result.

The only problem I had after going back all those times was that "Customize now" was ignored.  That is, the system started installing without allowing me to customize which packages I wanted to install.  Customize now was still marked; I didn't try turning it off and turning it on.

Comment 20 Zack Cerza 2011-01-04 18:03:57 UTC
Created attachment 471720 [details]
Attached traceback automatically from anaconda.

Comment 21 Radek Vykydal 2011-01-11 16:53:40 UTC
My attempt to solve the issue in bigger scope instead of the hack haven't got attention. Perhaps its time (or time for repository UI rewrite) is yet to come.

Comment 22 Radek Vykydal 2011-01-11 16:55:00 UTC
(In reply to comment #21)
> My attempt to solve the issue in bigger scope instead of the hack haven't got
> attention. Perhaps its time (or time for repository UI rewrite) is yet to come.

Oh, here is the patchset for the record:
http://www.redhat.com/archives/anaconda-devel-list/2010-September/msg00181.html

Comment 23 João Carlos Mendes Luís 2011-02-20 13:54:15 UTC
Created attachment 479762 [details]
Attached traceback automatically from anaconda.

Comment 24 Daniel Mach 2011-03-01 13:22:30 UTC
Created attachment 481610 [details]
Attached traceback automatically from anaconda.

Comment 25 rct+redhat 2011-03-31 22:59:21 UTC
Created attachment 489259 [details]
Attached traceback automatically from anaconda.

Comment 26 Radek Vykydal 2011-06-23 12:12:23 UTC
*** Bug 679466 has been marked as a duplicate of this bug. ***

Comment 27 Chris Lumens 2011-08-25 13:21:23 UTC
*** Bug 733213 has been marked as a duplicate of this bug. ***

Comment 28 Radek Vykydal 2011-09-23 10:26:17 UTC
*** Bug 740666 has been marked as a duplicate of this bug. ***

Comment 29 Chris Lumens 2012-08-03 19:25:48 UTC
The code this bug resulted from is no longer present as of anaconda-18.3.  Please test with F18 and if you see similar problems, open a new bug.  Thanks.