Bug 586410

Summary: list-harddrives command broken in kickstart/anaconda environment for %pre/%post
Product: Red Hat Enterprise Linux 6 Reporter: Don Hoover <donhoover>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Banas <mbanas>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: borgan, j.faithw, mbanas, paulwaterman
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-13.21.33-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-02 20:47:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
list-harddrives crash output
none
parted example output on same devices none

Description Don Hoover 2010-04-27 13:52:40 UTC
Created attachment 409480 [details]
list-harddrives crash output

Description of problem:
The "list-harddrives" utility crashes on CDROM drive discovery with DiskLabelException "unrecognized disk label".

This is a popular command to use in kickstart %pre and %post scripts to provide an easy to use method of getting information about all of the disks connected to the system.

Version-Release number of selected component (if applicable):
RHEL 6 Beta 1

How reproducible:
Run list-harddrives command inside command shell or in %pre/%post scripts during kickstart/anaconda environment.

Steps to Reproduce:
1. run list-harddrives command
2. command crashes on cdrom
3.
  
Actual results:
Crash.


Expected results:
A properly formatted list of hard drives on system and their sizes.

Additional info:

Attached are screenshots(was using VMWare Console so have no copy/paste) of the output from list-harddrives crash, as well as the example output from running parted against the device as well which is apparently what output is being parsed by the list-harddrives python code that causes the problem.

Comment 1 Don Hoover 2010-04-27 13:53:29 UTC
Created attachment 409481 [details]
parted example output on same devices

Comment 2 RHEL Program Management 2010-04-27 14:49:37 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 Martin Banas 2010-05-18 12:34:30 UTC
Hello, VERIFIED on build RHEL6.0-20100512.0 with anaconda-13.21.39-1.el6. No traceback displayed, only /dev/sda has been checked.

Closing as verified.

Comment 5 Chris Lumens 2010-06-04 19:15:05 UTC
*** Bug 600469 has been marked as a duplicate of this bug. ***

Comment 6 Jeremy Faith 2010-06-30 09:36:13 UTC
Hi, This bug also exists in Fedora 13 anaconda-13.42-1.fc13.i686 as was reported in Bug 600469. I notice this is Fixed in Version: anaconda-13.21.33-1 has the fix been forward ported?

Comment 7 releng-rhel@redhat.com 2010-07-02 20:47:36 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.