Bug 541052 - Crash opening /usr/share/spin-kickstarts/fedora-livecd-xfce.ks
Summary: Crash opening /usr/share/spin-kickstarts/fedora-livecd-xfce.ks
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-kickstart
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 543574 582755 (view as bug list)
Depends On:
Blocks: 560079
TreeView+ depends on / blocked
 
Reported: 2009-11-24 20:32 UTC by Phip
Modified: 2014-01-21 23:12 UTC (History)
9 users (show)

Fixed In Version: system-config-kickstart-2.8.4-1
Clone Of:
: 560079 (view as bug list)
Environment:
Last Closed: 2010-01-29 18:53:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Exception Report (18.94 KB, text/plain)
2009-11-24 20:32 UTC, Phip
no flags Details

Description Phip 2009-11-24 20:32:52 UTC
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:

Comment 1 Chris Lumens 2009-11-24 20:37:22 UTC
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'

Comment 2 James Antill 2009-11-24 21:11:47 UTC
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.

Comment 3 Phip 2009-11-25 01:17:16 UTC
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

Comment 4 Juan P. Daza P. 2009-12-30 00:56:18 UTC
I can reproduce this error in: fedora-kickstarts-0.12.1-1.fc12.noarch.

---

Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 5 James Antill 2010-01-06 07:13:18 UTC
chris?

Comment 6 Chris Lumens 2010-01-21 22:39:10 UTC
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.

Comment 7 Chris Lumens 2010-01-29 15:08:34 UTC
*** Bug 543574 has been marked as a duplicate of this bug. ***

Comment 8 Chris Lumens 2010-01-29 18:53:08 UTC
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.

Comment 9 Chris Lumens 2010-04-15 18:56:49 UTC
*** Bug 582755 has been marked as a duplicate of this bug. ***


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