Red Hat Bugzilla – Bug 172415
system-config-lvm crashes on startup and report ValueError: invalid literal for int():
Last modified: 2007-11-30 17:11:16 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7
Description of problem:
When starting system-config-lvm from command line I get the following error:
File "/usr/share/system-config-lvm/lvm_model.py", line 876, in get_extents_for_PV
start = int(words[SEG_START_COL])
ValueError: invalid literal for int(): hda6vg
Where "hda6vg" is my volume group name.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.When creating your volume group, put your partition name as the volume group name
After analyzing the code aroung line 876 in File "/usr/share/system-config-lvm/lvm_model.py" I found that the code assumes that it will not find the pathname in the "Logical volume" section but this is not true if your volume group starts with the partition name.
You will find the result of "lvdisplay -m" command on my system as attachement.
Workaround: Do NOT start the Volume Group name with the partition name.
Created attachment 120712 [details]
Output of lvdisplay -m
What is the system-config-lvm version you are using?
Closing due to lack of response.