Bug 1862610

Summary: [LSO] Auto discovery should discovery LVM devices as well.
Product: OpenShift Container Platform Reporter: Santosh Pillai <sapillai>
Component: StorageAssignee: Santosh Pillai <sapillai>
Storage sub component: Local Storage Operator QA Contact: Chao Yang <chaoyang>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs, jsafrane, mavazque, sapillai
Version: 4.6   
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:21:54 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 Santosh Pillai 2020-07-31 19:53:00 UTC
Description of problem:
Currently LSO auto discovery is only discovers `disk` and 'partition` device types. It should also discover LVM devices. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Start LSO operator
2. Apply local volume discovery CR
3. Observe the disk size in the discovery result status. 

Actual results:
Currently LSO auto discovery is only discovers `disk` and 'partition` device types. 

Expected results:
It should also discover LVM devices. 

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

Comment 2 Chao Yang 2020-09-27 06:18:17 UTC
Passed on 4.6.0-0.nightly-2020-09-25-034954 

nvme2n1                      259:6    0     7G  0 disk 
`-nvme2n1p1                  259:9    0     7G  0 part 
  `-vgtest-lvtest            253:2    0     4G  0 lvm 
 

 - deviceID: /dev/disk/by-id/dm-name-vgtest-lvtest
    fstype: ""
    model: ""
    path: /dev/vgtest-lvtest
    property: NonRotational
    serial: ""
    size: 4294967296
    status:
      state: Available
    type: lvm
    vendor: ""

Comment 5 errata-xmlrpc 2020-10-27 16:21:54 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 (OpenShift Container Platform 4.6 GA Images), 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-2020:4196