Bug 147984 - /sbin/lvm no more: system-config-lvm breaks
Summary: /sbin/lvm no more: system-config-lvm breaks
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-lvm   
(Show other bugs)
Version: rawhide
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Jim Parsons
QA Contact: Jim Parsons
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-14 15:16 UTC by Alexandre Oliva
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-05 17:24:23 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Alexandre Oliva 2005-02-14 15:16:14 UTC
Description of problem:
system-config-lvm throws an exception and aborts at start up because
it can't run /sbin/lvm.  lvm2 no longer provides such a binary; it's
either /sbin/lvm.static or /usr/sbin/lvm.  All of the occurrences are
in lvm_model.py.

Version-Release number of selected component (if applicable):
system-config-lvm-0.9.18-1.1

How reproducible:
Always

Comment 1 Jim Cornette 2005-02-17 23:22:38 UTC
I am also experiencing this problem with a system that was upgraded
from FC3 to rawhide on Feb 13,2005.
The version is the same as listed above.

 Traceback (most recent call last):
  File "/usr/sbin/system-config-lvm", line 131, in ?
    runFullGUI()
  File "/usr/sbin/system-config-lvm", line 116, in runFullGUI
    blvm = baselvm(glade_xml, app)
  File "/usr/sbin/system-config-lvm", line 70, 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 131, in
__init__
    self.prepare_tree()
  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 203, in
prepare_tree
    vg_list = self.model_factory.query_VGs()
  File "/usr/share/system-config-lvm/lvm_model.py", line 314, in query_VGs
    result_string = rhpl.executil.execWithCapture("/sbin/lvm",arglist)
  File "/usr/lib/python2.4/site-packages/rhpl/executil.py", line 105,
in execWithCapture
    raise RuntimeError, command + " can not be run"
RuntimeError: /sbin/lvm can not be run


lvm itself is functional. I was able to run commands without errors.

....

Comment 2 Jim Cornette 2005-02-18 01:34:23 UTC
Adding a symlink from /usr/sbin/lvm to /sbin/lvm allows the program to
come up and display the lvm information.

I don't know whether lvm is in the wrong location or the script is
looking in the wrong place.

Comment 3 Jim Parsons 2005-04-06 14:38:08 UTC
The reason for this defect is because the link from /usr/sbin/lvm to /sbin/lvm
was  dropped in a recent distribution of the underlying LVM2 application. This
link has been restored, however, and should  work correctly with the next fedora
release. In the meanwhile, making this link above by hand addresses the issue
immediately.

Comment 6 Jim Parsons 2005-04-06 17:05:40 UTC
Changed path in application to /usr/sbin/lvm. Fixed in system-config-lvm >= 0.9.21

Comment 7 Alexandre Oliva 2005-05-05 17:24:23 UTC
Seems to work now, but it's extremely noisy in the output to the initiating
console, at least with selinux enabled.  It prints messages such as:

File descriptor 7 left open
File descriptor 8 left open
File descriptor 9 left open
File descriptor 10 left open
File descriptor 11 left open
File descriptor 12 left open
File descriptor 13 left open
File descriptor 14 left open

a nearly-infinite number of times.  I guess this is something for a separate bug
report though.


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