system-config-lvm crashes on startup

Bug #290045 reported by Stefan Soriga
26
This bug affects 2 people
Affects Status Importance Assigned to Milestone
system-config-lvm (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: system-config-lvm

1) stefan@psyche:~$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

2) stefan@psyche:~$ apt-cache policy system-config-lvm
system-config-lvm:
  Installed: 1.1.4-1
  Candidate: 1.1.4-1
  Version table:
 *** 1.1.4-1 0
        500 http://ro.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status
3) I expect to start
4) Traceback (most recent call last):
  File "/usr/share/system-config-lvm/system-config-lvm.py", line 173, in <module>
    runFullGUI()
  File "/usr/share/system-config-lvm/system-config-lvm.py", line 158, in runFullGUI
    blvm = baselvm(glade_xml, app)
  File "/usr/share/system-config-lvm/system-config-lvm.py", 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 30, in get_multipath_data
    raise CommandError('FATAL', COMMAND_FAILURE % ("dmsetup",cmdstr, e))
NameError: global name 'CommandError' is not defined

Revision history for this message
Max Waterman (davidmaxwaterman) wrote :

It seems to me that the package is missing a dependency on dmraid, as detailed in :

http://ubuntuforums.org/showpost.php?p=5864547&postcount=76

Revision history for this message
intel (intel-tg) wrote :

Workaround is available
#modprobe dm_mod
then
#system-config-lvm should work correctly

This error only triggers on a fresh install, where the user hasen't rebooted yet
which means dm_mod isn't loaded yet

Changed in system-config-lvm:
status: New → In Progress
Revision history for this message
Hew (hew) wrote :

Is this bug really In Progress?

Installing dmraid worked for me.

Changed in system-config-lvm:
importance: Undecided → Medium
Revision history for this message
Axel Werner (mail-awerner) wrote :

about "intel's" statement:

that problem persists even after reboot. it seems it just didnt installed that "dm_mod" module into /etc/modules or whereever its supposed to be listed.

so this seems to be STILL a bug.. not a feature.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"

Revision history for this message
Hew (hew) wrote :

No comment received about In Progress status, setting to Triaged instead.

Changed in system-config-lvm (Ubuntu):
status: In Progress → Triaged
Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :
Download full text (3.4 KiB)

I received this in 8.10 as well...

$ sudo aptitude install system-config-lvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following NEW packages will be installed:
  gettext{a} lvm2{a} menu{a} system-config-lvm
0 packages upgraded, 4 newly installed, 0 to remove and 31 not upgraded.
Need to get 3314kB of archives. After unpacking 14.0MB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://archive.ubuntu.com intrepid/main gettext 0.17-3ubuntu2 [1984kB]
Get:2 http://archive.ubuntu.com intrepid/main lvm2 2.02.39-0ubuntu2 [359kB]
Get:3 http://archive.ubuntu.com intrepid/universe menu 2.1.40ubuntu1 [434kB]
Get:4 http://archive.ubuntu.com intrepid/universe system-config-lvm 1.1.4-1 [537kB]
Fetched 3314kB in 4s (791kB/s)
Selecting previously deselected package gettext.
(Reading database ... 149682 files and directories currently installed.)
Unpacking gettext (from .../gettext_0.17-3ubuntu2_i386.deb) ...
Selecting previously deselected package lvm2.
Unpacking lvm2 (from .../lvm2_2.02.39-0ubuntu2_i386.deb) ...
Selecting previously deselected package menu.
Unpacking menu (from .../menu_2.1.40ubuntu1_i386.deb) ...
Selecting previously deselected package system-config-lvm.
Unpacking system-config-lvm (from .../system-config-lvm_1.1.4-1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up gettext (0.17-3ubuntu2) ...

Setting up lvm2 (2.02.39-0ubuntu2) ...
Backing up any LVM2 metadata that may exist...done.
update-initramfs: deferring update (trigger activated)

Setting up menu (2.1.40ubuntu1) ...

Processing triggers for menu ...
Setting up system-config-lvm (1.1.4-1) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.27-11-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

$ system-config-lvm
Traceback (most recent call last):
  File "/usr/share/system-config-lvm/system-config-lvm.py", line 173, in <module>
    runFullGUI()
  File "/usr/share/system-config-lvm/system-config-lvm.py", line 158, in runFullGUI
    blvm = baselvm(glade_xml, app)
  File "/usr/share/system-config-lvm/system-config-lvm.py", 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...

Read more...

Revision history for this message
Philipp Huebner (debalance-debian) wrote :

guys, that was reported to the BTS as #507751 and fixed ages ago.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Right. Closing the bug report as fixed

Changed in system-config-lvm (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.