Bug 520061 - KeyError: 'ANACONDAVERSION' when running on installed system
Summary: KeyError: 'ANACONDAVERSION' when running on installed system
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 519665
TreeView+ depends on / blocked
Reported: 2009-08-28 08:28 UTC by Alexander Todorov
Modified: 2009-09-04 19:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-09-04 19:50:53 UTC

Attachments (Terms of Use)
patch to fix this issue (1.16 KB, text/plain)
2009-09-03 15:34 UTC, Chris Lumens
no flags Details

Description Alexander Todorov 2009-08-28 08:28:10 UTC
Description of problem:
When running anaconda on installed system:

Traceback (most recent call last):
  File "/usr/sbin/anaconda", line 978, in <module>
  File "/usr/lib/anaconda/exception.py", line 93, in initExceptionHandling
    conf = Config(programName="anaconda", programVersion=os.environ["ANACONDAVERSION"],
  File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. mkdir /mnt/nbdroot
2. anaconda --text --rootpath=/mnt/nbdroot --method=http://fedora.nano-box.net/linux/development/i386/os/
Actual results:

Expected results:
Anaconda will start in text mode and install packages under /mnt/nbdroot

Additional info:
The ANACONDAVERSION env variable is set in loader but it's not present when running anaconda on already installed system. This is preventing usage of anaconda to prepare netboot images/chroot.

This is a regression against F11 where anaconda is able to start (though it tracebacks at another place, see bug #519665)

Comment 1 Chris Lumens 2009-09-03 15:34:57 UTC
Created attachment 359697 [details]
patch to fix this issue

Does applying this patch to /usr/lib/anaconda fix the issue?

Comment 2 David Cantrell 2009-09-04 19:50:53 UTC
This will be fixed in anaconda-12.21-1.  Took a different approach from Chris' patch.  anaconda now has the isys.getAnacondaVersion() function to return the anaconda version number when needed.

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