Bug 138103 - Display LVM stderr to user in dailog on command failure
Summary: Display LVM stderr to user in dailog on command failure
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: system-config-lvm
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jim Parsons
QA Contact: Jim Parsons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-04 17:10 UTC by Derek Anderson
Modified: 2009-04-16 23:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-11-23 21:26:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Derek Anderson 2004-11-04 17:10:09 UTC
Description of problem:
It would be extremely beneficial for usability if, when LVM commands
fail, the stderr messages from LVM could be displayed to the user in a
dialog box so they know what went wrong and why.

A couple examples of this are:
- User tries to create a striped LV where stripes exceed the number of
PVs in the VG
- User tries to create a striped LV where the there aren't enough
stripe extents available on one or more of the smallest PVs.

Displaying:
  "Number of stripes (8) must not exceed number of physical volumes (3)"
or
  "Insufficient allocatable extents suitable for parallel use for
logical volume GIG: 35841 required"

respectively in an error dialog is much more helpful than refreshing
to the default view with no indication that the requested action could
not be taken.

Version-Release number of selected component (if applicable):
system-config-lvm-0.9.6-1.0

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jim Parsons 2004-11-12 19:46:26 UTC
This issue is being addressed by editing a standard dist package
called RHPL, and adding a new executil method that returns stdout,
stderr, and exitcode. The current one only returns stdout. When
available, system-config-lvm code will use this new method and a
dependency will be placed in the spec file for the necessary rev of RHPL.

As this does not seem to be a showstopper, can we mark this as
deferred for now? 


Comment 2 Jim Parsons 2004-11-23 15:38:16 UTC
With the addition of a modification to the rhpl libs, this bug is now
fixable, and has been in 0.9.14-1.0

Comment 3 Derek Anderson 2004-11-23 21:26:47 UTC
I am now getting error messages similar to the following, which is
what is expected:

lvcreate command failed. Command attempted: "/usr/sbin/lvcreate -n LV1
-l 9000 -i 4 -I 64 VG1" - System Error Message:   Number of stripes
(4) must not exceed number of physical volumes (2)

Verified in system-config-lvm-0.9.17-1.0.


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