Bug 187119 - /usr/lib/anaconda/list-harddrives gives error
/usr/lib/anaconda/list-harddrives gives error
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
5
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Anaconda Maintenance Team
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-28 11:38 EST by George Henson
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-03-28 11:47:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description George Henson 2006-03-28 11:38:10 EST
During a kickstart install list-harddrives exits with an error. This same error
can be created when running the list-harddrives-stub from an installed system.

I am using version: anaconda-11.0.5-1

# /usr/lib/anaconda/list-harddrives-stub
Traceback (most recent call last):
  File "/usr/lib/anaconda/list-harddrives-stub", line 16, in ?
    import partedUtils
  File "/usr/lib/anaconda/partedUtils.py", line 29, in ?
    import dmraid
  File "/usr/lib/anaconda/dmraid.py", line 29, in ?
    from anaconda_log import logger, logFile
  File "/usr/lib/anaconda/anaconda_log.py", line 93, in ?
    logger = AnacondaLog()
  File "/usr/lib/anaconda/anaconda_log.py", line 50, in __init__
    autoSetLevel=False, minLevel=logging.DEBUG)
  File "/usr/lib/anaconda/anaconda_log.py", line 74, in addFileHandler
    addToLogger.addHandler(logfileHandler, autoSetLevel=autoSetLevel)
TypeError: addHandler() got an unexpected keyword argument 'autoSetLevel'

If I apply the below patch, I do not get the error:

--- @anaconda_log.py    2006-03-28 16:17:53.000000000 -0500
+++ anaconda_log.py     2006-03-28 16:39:36.000000000 -0500
@@ -71,7 +71,7 @@

         logfileHandler.setLevel(minLevel)
         logfileHandler.setFormatter (logging.Formatter (fmtStr, "%H:%M:%S"))
-        addToLogger.addHandler(logfileHandler, autoSetLevel=autoSetLevel)
+        addToLogger.addHandler(logfileHandler)

     # Add another logger to the hierarchy.  For best results, make sure
     # name falls under anaconda in the tree.
Comment 1 Chris Lumens 2006-03-28 11:47:20 EST
That'll break log levels in anaconda.  What I really want to do is import
anaconda_log early on in several of these stubs.  Fixed in Rawhide.

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