Bug 429902 - KeyError: 'LIBUSER_CONF'
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: anaconda (Show other bugs)
All Linux
low Severity low
: rc
: ---
Assigned To: Chris Lumens
: 429916 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2008-01-23 13:35 EST by Milan Zazrivec
Modified: 2008-05-21 11:32 EDT (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2008-0397
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-21 11:32:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Milan Zazrivec 2008-01-23 13:35:21 EST
Description of problem:
Anaconda installs of RHEL5.2-Server-20080123.nightly fail with following

Traceback (most recent call last):
  File "/usr/bin/anaconda", line 683, in ?
  File "/usr/lib/anaconda/users.py", line 25, in createLuserConf
    if os.access(os.environ["LIBUSER_CONF"], os.R_OK):
  File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
    def __getitem__(self, key): return self.data[key]
install exited abnormally [1/1]

Version-Release number of selected component (if applicable):
anaconda- / RHEL5.2-Server-20080123.nightly

How reproducible:

Steps to Reproduce:
1. Boot RHEL5.2-Server-20080123.nightly installer
2. Make it all the way to the beginning of stage2
3. Right after stage2 is loaded, mentioned traceback occurs
Comment 1 Chris Lumens 2008-01-23 14:34:11 EST
*** Bug 429916 has been marked as a duplicate of this bug. ***
Comment 2 Chris Lumens 2008-01-23 14:39:03 EST
Fallout from the patch for 427388, easy to fix.
Comment 3 Chris Lumens 2008-01-23 14:40:40 EST
diff --git a/users.py b/users.py
index 5af3cb0..9cd5ef8 100644
--- a/users.py
+++ b/users.py
@@ -22,7 +22,7 @@ import os.path
 def createLuserConf(instPath, saltname='md5'):
     """Writes a libuser.conf for instPath."""
-    if os.access(os.environ["LIBUSER_CONF"], os.R_OK):
+    if os.getenv("LIBUSER_CONF") and os.access(os.environ["LIBUSER_CONF"],
         fn = os.environ["LIBUSER_CONF"]
         fd = open(fn, 'w')
Comment 9 errata-xmlrpc 2008-05-21 11:32:42 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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