system-config-lvm crashes with IndexError: list index out of range

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5 Update 4

  • system-config-lvm-1.1.5-1.0.el5.noarch

Issue

system-config-lvm crashes with the below error:

[root@localhost ~]# system-config-lvm 
Traceback (most recent call last): 
  File "/usr/sbin/system-config-lvm", line 173, in ? 
    runFullGUI() 
  File "/usr/sbin/system-config-lvm", line 158, in runFullGUI 
    blvm = baselvm(glade_xml, app) 
  File "/usr/sbin/system-config-lvm", line 108, in __init__ 
    self.volume_tab_view = Volume_Tab_View(glade_xml, self.lvmm, self.main_win) 
  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 133, in __init__ 
    self.prepare_tree() 
  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 214, in prepare_tree 
    self.model_factory.reload() 
  File "/usr/share/system-config-lvm/lvm_model.py", line 164, in reload 
    self.__PVs = self.__query_partitions() 
  File "/usr/share/system-config-lvm/lvm_model.py", line 275, in __query_partitions 
    pv.setPartition(old_pv.getPartition()) 
  File "/usr/share/system-config-lvm/PhysicalVolume.py", line 146, in getPartition 
    return (self.getDevnames()[0], self.part) 
IndexError: list index out of range

Resolution

This has been fixed in a new version of system-config-lvm (system-config-lvm-1.1.5-4.el5.src.rpm).

You will need to update to at least system-config-lvm-1.1.5-4.el5.src.rpm . You can download the package manually, and install it with "rpm -Uvh <package>".
Alternatively, you can run "yum update system-config-lvm"

Root Cause

  • https://bugzilla.redhat.com/show_bug.cgi?id=522200

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.