Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 373524 [details] Exception Report Description of problem: system-config-kickstart crashes opening /usr/share/spin-kickstarts/fedora-livecd-xfce.ks Version-Release number of selected component (if applicable): system-config-kickstart-2.8.2-1.fc12.noarch fedora-kickstarts-0.12.0-2.fc12.noarch How reproducible: Every Time Steps to Reproduce: 1. File > Open File 2. Select /usr/share/spin-kickstarts/edora-livecd-xfce.ks Additional info:
system-config-kickstart @VERSION@ exception report Traceback (most recent call last): File "/usr/share/system-config-kickstart/kickstartGui.py", line 357, in on_activate_open self.applyKickstart() File "/usr/share/system-config-kickstart/kickstartGui.py", line 397, in applyKickstart self.packages_class.applyKickstart() File "/usr/share/system-config-kickstart/packages.py", line 278, in applyKickstart self.y.selectGroup(grp.groupid) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2281, in selectGroup txmbrs = self.install(name = pkg) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2896, in install txmbr = self.tsInfo.addInstall(po) File "/usr/lib/python2.6/site-packages/yum/transactioninfo.py", line 341, in addInstall self.add(txmbr) File "/usr/lib/python2.6/site-packages/yum/transactioninfo.py", line 204, in add if self.rpmdb.contains(po=pkg): AttributeError: 'NoneType' object has no attribute 'contains'
Is anaconda/kickstart doing anything weird here? Ie. Intentionally running with rpmdb as None for some code paths? Or maybe cleverly setting up tsInfo? Because AFAIK the only way the above can happen is (rpmdb is None) is if rpmdb hasn't been accessed which also means tsInfo hasn't been accessed (because that accesses .rpmdb on init) ... but tsInfo has been accessed due to the .addInstall() call.
Executed completely vanilla, and my rpm/yum is working fine. There is no problem opening almost everything in the /usr/share/spin-kickstarts/ directory. I just tested each file, and this crash only happens with fedora-install-fedora.ks and fedora-livecd-xfce.ks
I can reproduce this error in: fedora-kickstarts-0.12.1-1.fc12.noarch. --- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers
chris?
Well, system-config-kickstart is unfortunately a little clever because it uses GroupSelector from anaconda, which is fairly old stuff these days. This could all use a bit of an overhaul when I find some free time. Anyway it looks like something funny is definitely going on: (Pdb) print self.y <packages.sckYumBase object at 0x34fc550> (Pdb) print self.y.rpmdb <yum.rpmsack.RPMDBPackageSack object at 0x3982a10> (Pdb) print self.y.tsInfo <yum.transactioninfo.TransactionData instance at 0x4ff1878> (Pdb) print self.y.tsInfo.rpmdb None And packages.sckYumBase is a subclass of yum.YumBase. To be fair, this could just be that yum has moved on but system-config-kickstart needs to be updated to follow the changes.
*** Bug 543574 has been marked as a duplicate of this bug. ***
Oh, it's pretty obvious. I was assigning something to self.y.tsInfo. I shouldn't be doing that since it's a property and gets created when it needs to get created. I assume that in the past, this was not the case and the manual assignment was necessary. Anyway, fixed.
*** Bug 582755 has been marked as a duplicate of this bug. ***