Bug 463780 - Add new logical volume raises exception
Add new logical volume raises exception
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: anaconda (Show other bugs)
i386 Linux
medium Severity high
: rc
: ---
Assigned To: Radek Vykydal
Alexander Todorov
: 463843 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2008-09-24 13:35 EDT by Radek Vykydal
Modified: 2009-01-20 16:37 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-20 16:37:35 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
traceback file (61.18 KB, text/plain)
2008-09-24 13:35 EDT, Radek Vykydal
no flags Details
patch with fix (1.27 KB, patch)
2008-09-25 06:56 EDT, Radek Vykydal
no flags Details | Diff
updated patch with fix (1.24 KB, patch)
2008-09-25 07:23 EDT, Radek Vykydal
no flags Details | Diff
updated fix (6.83 KB, patch)
2008-09-30 04:55 EDT, Radek Vykydal
no flags Details | Diff

  None (edit)
Description Radek Vykydal 2008-09-24 13:35:00 EDT
Created attachment 317608 [details]
traceback file

Description of problem:
In partition editor after "Remove all partitions on selected
drives and create default layout", trying to add a logical
partition to VolGroup00 raises exception. 

Version-Release number of selected component (if applicable):
tree: rhel5 20080919 nightly Server i386

How reproducible:

Steps to Reproduce:
1. in partitioning select
"Remove all partitions on selected drives and create default layout"
and check "Review and modify partitioning layout", go "Next"
2. in partittion editor edit LogVol00 partition
3. in "Edit LVM Volume Group" dialog delete LogVol00 partition
4. in "Edit LVM Volume Group" dialog click "Add"
Actual results:
Exception raised
Traceback (most recent call first):
  File "/usr/lib/anaconda/partRequests.py", line 981, in getActualSize
    retval = lvm.clampLVSizeRequest(retval, vgreq.pesize)
  File "/usr/lib/anaconda/iw/lvm_dialog_gui.py", line 445, in editLogicalVolume
    sizeEntry.set_text("%Ld" % (logrequest.getActualSize(self.partitions, self.diskset),))
  File "/usr/lib/anaconda/iw/lvm_dialog_gui.py", line 775, in addLogicalVolumeCB
    self.editLogicalVolume(request, isNew = 1)
AttributeError: 'NoneType' object has no attribute 'pesize'

Expected results:
Dialog for adding should appear

Additional info:
traceback attached
Comment 1 RHEL Product and Program Management 2008-09-24 15:15:01 EDT
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
Comment 2 Radek Vykydal 2008-09-25 06:56:54 EDT
Created attachment 317675 [details]
patch with fix

Seems like to be caused by commit 4aa9ca1c35b867fa5a4d94c41591700ca7ab5edb,
(bug #415871).
The patch should solve this bug while keeping what was intended with patch
for #415871 in.
Comment 3 Radek Vykydal 2008-09-25 07:02:06 EDT
(In reply to comment #2)

> ............................ while keeping what was intended with patch
> for #415871 in.

Joel, could you review attached patch that wrt ^^^^?
Comment 4 Radek Vykydal 2008-09-25 07:23:24 EDT
Created attachment 317677 [details]
updated patch with fix
Comment 5 Joel Andres Granados 2008-09-25 08:19:34 EDT
To consider the "round down patch, 4aa9ca1c35b867fa5a4d94c41591700ca7ab5edb" only for the volumes that are described with percent seems OK to me.

I'd go ahead and commit it.
Comment 6 Radek Vykydal 2008-09-25 09:34:57 EDT
*** Bug 463843 has been marked as a duplicate of this bug. ***
Comment 7 Radek Vykydal 2008-09-25 12:54:38 EDT
The patch from comment #4 doesn't work.
Things seem pretty more complicated.
Comment 8 Radek Vykydal 2008-09-30 04:55:57 EDT
Created attachment 318049 [details]
updated fix

should fix the bug, also tested against reproducer of original bug #415871
Comment 9 Radek Vykydal 2008-09-30 11:12:00 EDT
Fixed with commit 08233b0c42f8b453ff7d8bde03c9adc57d92d7ed,
should go into anaconda-
Comment 14 errata-xmlrpc 2009-01-20 16:37:35 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. 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.