Bug 1986995

Summary: vdoimport should give warnings for conversion attempts on invalid devices
Product: Red Hat Enterprise Linux 8 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
lvm2 sub component: VDO QA Contact: cluster-qe <cluster-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: high CC: agk, awalsh, heinzm, jbrassow, mcsontos, prajnoha, zkabelac
Version: 8.5   
Target Milestone: beta   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lvm2-2.03.14-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 15:21:57 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:

Description Corey Marthaler 2021-07-28 16:37:36 UTC
Description of problem:
[root@hayes-03 ~]# vdoimport /dev/doesnt_exist
[root@hayes-03 ~]# echo $?
1

Version-Release number of selected component (if applicable):
lvm2-2.03.12-5.el8    BUILT: Tue Jul 13 11:50:03 CDT 2021
lvm2-libs-2.03.12-5.el8    BUILT: Tue Jul 13 11:50:03 CDT 2021

Comment 1 Zdenek Kabelac 2021-09-06 17:27:15 UTC
Fixed upstream with this patch:

https://listman.redhat.com/archives/lvm-devel/2021-September/msg00004.html


Correctly reports readlink cannot access passed device path.

Comment 4 Corey Marthaler 2021-11-03 02:48:31 UTC
Marking Verified:Tested in the latest rpms.

kernel-4.18.0-348.4.el8.kpq0    BUILT: Wed Oct 27 15:00:32 CDT 2021
lvm2-2.03.14-1.el8    BUILT: Wed Oct 20 10:18:17 CDT 2021
lvm2-libs-2.03.14-1.el8    BUILT: Wed Oct 20 10:18:17 CDT 2021
lvm2-dbusd-2.03.14-1.el8    BUILT: Wed Oct 20 10:18:48 CDT 2021


SCENARIO - [attempt_non_existence_device_conversion]
Test the conversion attempt of a non existent device
lvm_import_vdo --yes /dev/nonexistent
lvm_import_vdo: Readlink cannot access device "/dev/nonexistent".

Comment 8 Corey Marthaler 2021-11-16 18:03:46 UTC
Marking Verified in the latest 8.6 rpms.

SCENARIO - attempt_non_existence_device_conversion:  Test the conversion attempt of a non existent device (bug 1986995) 
lvm_import_vdo --yes /dev/nonexistent
lvm_import_vdo: Readlink cannot access device "/dev/nonexistent".

Comment 10 errata-xmlrpc 2022-05-10 15:21:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (lvm2 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2038