Bug 709880

Summary: list-harddrives is broken
Product: Red Hat Enterprise Linux 5 Reporter: Vadym Chepkov <vchepkov>
Component: anacondaAssignee: Martin Gracik <mgracik>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: high Docs Contact:
Priority: high    
Version: 5.7CC: atodorov, david.deaderick, dmach, magnus, mgracik, pablo.iranzo, pvn, rdassen
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-11.1.2.243-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 05:37:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 726828    

Description Vadym Chepkov 2011-06-01 20:23:31 UTC
list-harddrives plugin is broken in 5.7 beta.

It fails with printing Traceback and the last line:

ImportError: No module named bootyutil

Comment 1 Chris Lumens 2011-06-02 14:43:28 UTC
list-harddrives is a script, not a plugin.

How are you running it?  Can you attach the complete traceback to this bug report?

Comment 2 Vadym Chepkov 2011-06-03 10:11:27 UTC
We run it from %pre section of a kickstart configuration file:

set $(list-harddrives)
instdrive=$1

but you could run it manually if you switch to shell prompt (Alt-F2) after anaconda starts

Here is the complete output:

Traceback (most recent call last):
  File "/usr/bin/list-harddrives", line 17, in ?
    import partedUtils
  File "/usr/lib/anaconda/partedUtils.py", line 25, in ?
    import fsset
  File "/usr/lib/anaconda/fsset.py", line 35, in ?
    import bootyutil
ImportError: No module named bootyutil

Comment 3 Vadym Chepkov 2011-07-08 13:35:21 UTC
Do you need any more updates from me, it would be unfortunate if it was broken in the final release.

Comment 4 Vadym Chepkov 2011-07-21 21:34:17 UTC
Redhat 5.7 was released with broken list-hardrives, this is very strange, I reported the problem well in advance. We would have to recommend our customers to skip version 5.7, since they rely on kickstart deployments

Comment 5 Magnus Hagebris 2011-07-21 22:18:43 UTC
Just add a Python path to the command.

I.e. call list-harddrives likes this:
PYTHONPATH=/usr/lib/booty list-harddrives

Comment 6 Pablo Iranzo Gómez 2011-07-25 16:14:54 UTC
I've hit this problem too with 5.7 release, we should get upgraded installation images fixing this...

Regards

Comment 7 RHEL Program Management 2011-08-05 12:34:12 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 8 Martin Gracik 2011-08-25 07:45:15 UTC
Fixed in anaconda-11.1.2.243-1

Comment 11 Chris Lumens 2011-10-21 20:34:31 UTC
*** Bug 748051 has been marked as a duplicate of this bug. ***

Comment 12 Alexander Todorov 2011-12-02 14:04:48 UTC
tested on anaconda-11.1.2.248-1.x86_64.rpm

# list-harddrives
vda 40954.7680664

Comment 13 errata-xmlrpc 2012-02-21 05:37:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0197.html