Bug 137872 - "ValueError: empty string for float()"
Summary: "ValueError: empty string for float()"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: system-config-lvm
Version: 4.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Jim Parsons
QA Contact: Jim Parsons
URL:
Whiteboard:
Depends On:
Blocks: 135876
TreeView+ depends on / blocked
 
Reported: 2004-11-02 14:05 UTC by Jay Turner
Modified: 2015-01-08 00:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-11-11 20:17:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jay Turner 2004-11-02 14:05:29 UTC
Description of problem:
With system-config-lvm-0.9.6-1.0, I'm getting the following traceback
when attempting to create a logical volume of size 500k.

Traceback (most recent call last):
  File "/usr/share/system-config-lvm/InputController.py", line 560, in
on_ok_new_lv_button
    proposed_size = float(prop_size)
ValueError: empty string for float()

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


How reproducible:
Always

Steps to Reproduce:
1. Go to the Logical Volume view of a VG
2. Click "Create New Logical Volume"
3. Enter size as 500k then attempt to create the new LV
  
Actual results:


Expected results:
I don't get the same traceback if I specify the LV size in megabytes.

Additional info:

Comment 1 Jim Parsons 2004-11-10 04:37:25 UTC
This was a regression - fixed @ 0.9.7-1.0
Refactored the way size/units are handled in LV creation, as in bz137930

Comment 2 Derek Anderson 2004-11-11 20:17:47 UTC
Verified in system-config-lvm-0.9.8-1.0.

However, now you get an error if the size is specified as a float. 
That is bug #138887.


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