Bug 475997 - sytem-config-lvm crashed with 'IndexError: list index out of range'
Summary: sytem-config-lvm crashed with 'IndexError: list index out of range'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-lvm
Version: 10
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Marek Grac
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-11 14:15 UTC by mad
Modified: 2009-08-28 06:13 UTC (History)
7 users (show)

Fixed In Version: 1.1.9-1.fc10
Clone Of:
Environment:
Last Closed: 2009-08-27 02:13:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Proposed patch (806 bytes, patch)
2009-08-10 19:35 UTC, Marek Grac
no flags Details | Diff

Description mad 2008-12-11 14:15:04 UTC
Description of problem:
- Remote login to server
- Execution of 'system-config-lvm'
- GUI pops up, additional pop-up 'Reloading LVM. Please wait.' appears
- GUI crashes

# system-config-lvm
Traceback (most recent call last):
  File "/usr/sbin/system-config-lvm", line 173, in <module>
    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 198, in __query_partitions
    multipath_data = multipath_obj.get_multipath_data()
  File "/usr/share/system-config-lvm/Multipath.py", line 53, in get_multipath_data
    block_devices.append(['/dev/' + words[9], words[4].rstrip(','), words[5]])
IndexError: list index out of range

Version-Release number of selected component (if applicable):
system-config-lvm-1.1.4-1.0.fc9.noarch

How reproducible:
always

Steps to Reproduce:
1. see above 'Description of Problem'
  
Actual results:
Crashed system-config-lvm

Expected results:
Running system-config-lvm

Additional info:
Worked in Fedora 8

Comment 1 Bug Zapper 2009-06-10 03:24:43 UTC
This message is a reminder that Fedora 9 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 9.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '9'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 9's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 9 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Bug Zapper 2009-07-14 15:37:54 UTC
Fedora 9 changed to end-of-life (EOL) status on 2009-07-10. Fedora 9 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 3 mad 2009-07-15 06:08:45 UTC
Fedora 10 has the same problem. This is my fix:

--- Multipath.py~       2009-07-06 11:24:08.000000000 +0200
+++ Multipath.py        2009-07-06 11:24:23.000000000 +0200
@@ -1,3 +1,4 @@
+# -*- coding: iso-8859-15 -*-

 import os

@@ -50,7 +51,10 @@
                 continue
             if words[0][0] == 'b':
                 # [name, major, minor]
+               try:
                 block_devices.append(['/dev/' + words[9], words[4].rstrip(','), words[5]])
+               except:
+                 pass

         # process dmsetup table
         for line in dmtable_lines:

Comment 4 Marek Grac 2009-08-10 19:34:41 UTC
With that fix block_devices won't be filled at all. Problem is in date format in ls. s-c-lvm is looking for:

brw-r--r-- 1 root root        250,   9 Mar 17  2008 zz

you have:

brw-r--r-- 1 root root        250,   9 2008-03-17  zz


'ls -l --time-style=long-iso' will create same environment everywhere

Thanks for reporting bug. Patch sent to upstream

Comment 5 Marek Grac 2009-08-10 19:35:17 UTC
Created attachment 356945 [details]
Proposed patch

Comment 6 Fedora Update System 2009-08-20 13:04:04 UTC
system-config-lvm-1.1.8-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/system-config-lvm-1.1.8-1.fc10

Comment 7 Fedora Update System 2009-08-20 23:01:04 UTC
system-config-lvm-1.1.9-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/system-config-lvm-1.1.9-1.fc10

Comment 8 Fedora Update System 2009-08-22 01:02:20 UTC
system-config-lvm-1.1.9-1.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-lvm'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-8861

Comment 9 Fedora Update System 2009-08-27 02:13:08 UTC
system-config-lvm-1.1.9-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 mad@comsoft.aero 2009-08-28 06:13:08 UTC
Works for me. Thank you very much.


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