RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 586410 - list-harddrives command broken in kickstart/anaconda environment for %pre/%post
Summary: list-harddrives command broken in kickstart/anaconda environment for %pre/%post
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Martin Banas
URL:
Whiteboard:
: 600469 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-27 13:52 UTC by Don Hoover
Modified: 2010-07-02 20:47 UTC (History)
4 users (show)

Fixed In Version: anaconda-13.21.33-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-02 20:47:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
list-harddrives crash output (40.19 KB, image/jpeg)
2010-04-27 13:52 UTC, Don Hoover
no flags Details
parted example output on same devices (53.16 KB, image/jpeg)
2010-04-27 13:53 UTC, Don Hoover
no flags Details

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.


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