Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 813403

Summary: Partitioning exception with kickstart "interactive" mode and LVM disk
Product: Red Hat Enterprise Linux 6 Reporter: Greg Edwards <gedwards>
Component: anacondaAssignee: David Lehman <dlehman>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-05 15:28:57 UTC Type: Bug
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
anaconda log from failed install attempt
none
demo kickstart file
none
proposed patch none

Description Greg Edwards 2012-04-17 16:31:03 UTC
Created attachment 578096 [details]
anaconda log from failed install attempt

Description of problem:

A divide by zero exception can be triggered in anaconda when performing a kickstart install with the "interactive" kickstart option enabled, to a disk with existing LVM volumes, and choosing "Create Custom Layout" partitioning option.

With the above on RHEL 6.2, if you click on any of the LVM volumes in the subsequent pane, you will trigger a python exception.


Version-Release number of selected component (if applicable):

RHEL 6.2, anaconda-13.21.149-1.el6


How reproducible:

always


Steps to Reproduce:
1. Disk with existing LVM volumes
2. Kickstart install
3. Kickstart "interactive" option enabled
4. Select "Create Custom Layout"
5. Click on one of the existing LVM volumes

  
Actual results:

Python exception occurs:

09:33:58,926 CRITICAL: anaconda 13.21.149 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.6/decimal.py", line 3778, in _raise_error
    raise error(explanation)
  File "/usr/lib64/python2.6/decimal.py", line 1248, in __truediv__
    return context._raise_error(DivisionByZero, 'x / 0', sign)
  File "/usr/lib/anaconda/iw/partition_gui.py", line 495, in _createStripe
    xlength = Decimal(str(lv.size)) / Decimal(str(vg.size))
  File "/usr/lib/anaconda/iw/partition_gui.py", line 301, in setDisplayed
    self.stripe = self._createStripe(obj)
  File "/usr/lib/anaconda/iw/partition_gui.py", line 476, in __init__
    self.setDisplayed(vg)
  File "/usr/lib/anaconda/iw/partition_gui.py", line 1285, in treeSelectCB
    dcCB = self.barviewActivateCB)
DivisionByZero: x / 0


Expected results:

No exception.

Additional info:

For background info, see RH BZ#641861 and upstream anaconda commit d826ef84e22a4dba55850d8232229275617bfd61.

Comment 1 Greg Edwards 2012-04-17 16:31:39 UTC
Created attachment 578097 [details]
demo kickstart file

Comment 3 Greg Edwards 2012-04-17 16:32:07 UTC
Created attachment 578098 [details]
proposed patch

Comment 4 Dave Cantrell 2012-07-05 15:28:57 UTC
Fixed in RHEL 6.2 and later.

*** This bug has been marked as a duplicate of bug 641861 ***