The following was filed automatically by anaconda:
anaconda 13.21.48 exception report
Traceback (most recent call first):
File "/usr/lib/python2.6/decimal.py", line 653, in __new__
"First convert the float to a string")
File "/tmp/updates/partition_gui.py", line 490, in _createStripe
xlength = Decimal(lv.size) / Decimal(vg.size)
File "/tmp/updates/partition_gui.py", line 299, in setDisplayed
self.stripe = self._createStripe(obj)
File "/tmp/updates/partition_gui.py", line 471, in __init__
File "/tmp/updates/partition_gui.py", line 1259, in treeSelectCB
dcCB = self.barviewActivateCB)
TypeError: Cannot convert float to Decimal. First convert the float to a string
Created attachment 422637 [details]
Attached traceback automatically from anaconda.
Looks like there are cases where lv.size and/or vg.size are not integers. Need to convert to a string when passing to Decimal() like so: "%0.4f" % lv.size
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
I have a fix ready for this - https://www.redhat.com/archives/anaconda-devel-list/2010-June/msg00125.html
To be clear: I introduced this with my fix for green partition stripes for bug #599614
(In reply to comment #2)
> Looks like there are cases where lv.size and/or vg.size are not integers. Need
> to convert to a string when passing to Decimal() like so: "%0.4f" % lv.size
how can I end up in a situation where those sizes are floats and not integers?
IIRC this was triggered by pre-existing partitions that would trigger bug 599614.
In bug 608172 I've tested haveing 3 partitions, /boot, swap and / and on the second install I've chosen to shrink the current system and created default LVM layout.
There was no traceback. Given that bug 599614 is VERIFIED and the patch from comment #5 is already included I'm moving it to VERIFIED.
Red Hat Enterprise Linux 6.0 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.