Bug 1330706

Summary: [RFE] Modify pvcreate to give more clear error messages
Product: Red Hat Enterprise Linux 7 Reporter: Vivek Goyal <vgoyal>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
lvm2 sub component: Default / Unclassified QA Contact: cluster-qe <cluster-qe>
Status: CLOSED WONTFIX Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, atomic-bugs, ejacobs, heinzm, jbrassow, lsm5, msnitzer, prajnoha, teigland, vgoyal, zkabelac
Version: 7.3Keywords: Extras, FutureFeature
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1330290 Environment:
Last Closed: 2020-08-21 21:16:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1330290, 1330714    
Bug Blocks:    

Comment 1 Vivek Goyal 2016-04-26 18:29:08 UTC
We ran into various pvcreate failures and error messages were not clear. It would be nice if pvcreate gives more clear error messages when different kind of errors happen.

Comment 3 Jonathan Earl Brassow 2016-06-30 16:17:15 UTC
(In reply to Vivek Goyal from comment #1)
> We ran into various pvcreate failures and error messages were not clear. It
> would be nice if pvcreate gives more clear error messages when different
> kind of errors happen.

Vivek, the old bug is a lot to plow through.  Can you give a couple examples of what type of output you would like to see in response to certain errors?

Comment 4 Vivek Goyal 2016-10-03 13:46:05 UTC
(In reply to Jonathan Earl Brassow from comment #3)
> (In reply to Vivek Goyal from comment #1)
> > We ran into various pvcreate failures and error messages were not clear. It
> > would be nice if pvcreate gives more clear error messages when different
> > kind of errors happen.
> 
> Vivek, the old bug is a lot to plow through.  Can you give a couple examples
> of what type of output you would like to see in response to certain errors?

Jon,

pvcreate was giving us following message.

"Device /dev/xvdb1 not found (or ignored by filtering).". 

This is very generic and it would be nice if error was more specific.

For example, first breakdown could happen, whether device node is not present or whether it was ignored by filtering.

And even for filtering, it would be nice to know what does that mean. On what specific attribute, a device was filtered out.

Comment 6 David Teigland 2020-08-21 21:16:58 UTC
closing for rhel7.  rhel8 will soon explain what filter rejected a device.