Bug 1429026

Summary: lvm shell fullreport stops working
Product: [Community] LVM and device-mapper Reporter: Tony Asleson <tasleson>
Component: lvm2Assignee: LVM Team <lvm-team>
lvm2 sub component: Command-line tools QA Contact: cluster-qe <cluster-qe>
Status: NEW --- Docs Contact:
Severity: unspecified    
Priority: high CC: agk, heinzm, jbrassow, msnitzer, pasik, prajnoha, tasleson, thornber, zkabelac
Version: 2.02.167Keywords: Triaged
Target Milestone: ---Flags: rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?
Target Release: ---   
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: 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:
Attachments:
Description Flags
lvm shell output of fullreport -vvvvv none

Description Tony Asleson 2017-03-03 21:30:37 UTC
Description of problem:

lvm shell fullreport stops reporting any output


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

LVM version:     2.02.167(2) (2016-11-05)
Library version: 1.02.136 (2016-11-05)
Driver version:  4.35.0

How reproducible:
100%


Steps to Reproduce:
1. run "lvm" to get a lvm shell
2. In lvm shell run "fullreport" on a system that has some PVs and note output
3. In a separate terminal create a VG
   eg. "vgcreate test /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg"
4. In the lvm shell run "full report", note the output
5. In separate terminal run "vgremove test"
7. In lvm shell type "fullreport" and note that there is no output

Actual results:
"fullreport" stops working, you can issue it multiple times and you get no output


Expected results:
fullreport continues to work as expected

Additional info:

If you run other commands, like "pvs" the fullreport will start working again


Example output:

]# lvm
lvm> fullreport
  Fmt  PV UUID                                DevSize PV         Maj Min PMdaFree  PMdaSize  PExtVsn 1st PE  PSize PFree Used Attr Allocatable Exported   Missing    PE  Alloc PV Tags #PMda #PMdaUse BA Start BA Size PInUse Duplicate
  lvm2 4mFHsF-FtMD-KI3H-QDfx-hQ0J-Qw3n-WQiFCF   8.00g /dev/sdb   8   16         0   1020.00k       2   1.00m 8.00g 8.00g   0  ---                                      0     0             1        1       0       0                  
  lvm2 1rgHsY-cHTL-5Gu1-NSi9-y9j6-9x79-fg0C2k   8.00g /dev/sdc   8   32         0   1020.00k       2   1.00m 8.00g 8.00g   0  ---                                      0     0             1        1       0       0                  
  lvm2 j5SAve-FCCA-5EeU-7798-0p4d-ZWYM-2bvpWM   8.00g /dev/sdd   8   48         0   1020.00k       2   1.00m 8.00g 8.00g   0  ---                                      0     0             1        1       0       0                  
  lvm2 3DXDsi-W1lM-sBX0-eHkc-3dhV-lIV8-80nedc   8.00g /dev/sde   8   64         0   1020.00k       2   1.00m 8.00g 8.00g   0  ---                                      0     0             1        1       0       0                  
  lvm2 kTaSiz-Dwl4-hDnd-pUq7-5uss-ll10-DG8cJK   8.00g /dev/sdf   8   80         0   1020.00k       2   1.00m 8.00g 8.00g   0  ---                                      0     0             1        1       0       0                  
  lvm2 TM5Dp3-31ep-FIwd-WVNX-tDGL-p4gG-6pJJRS   8.00g /dev/sdg   8   96         0   1020.00k       2   1.00m 8.00g 8.00g   0  ---                                      0     0             1        1       0       0                  
  Start SSize PV UUID                                LV UUID                               
      0     0 1rgHsY-cHTL-5Gu1-NSi9-y9j6-9x79-fg0C2k                                       
      0     0 3DXDsi-W1lM-sBX0-eHkc-3dhV-lIV8-80nedc                                       
      0     0 4mFHsF-FtMD-KI3H-QDfx-hQ0J-Qw3n-WQiFCF                                       
      0     0 TM5Dp3-31ep-FIwd-WVNX-tDGL-p4gG-6pJJRS                                       
      0     0 j5SAve-FCCA-5EeU-7798-0p4d-ZWYM-2bvpWM                                       
      0     0 kTaSiz-Dwl4-hDnd-pUq7-5uss-ll10-DG8cJK                                       
lvm> fullreport
  Fmt  VG UUID                                VG   Attr   VPerms     Extendable Exported   Partial    AllocPol   Clustered  VSize  VFree  SYS ID System ID LockType VLockArgs Ext   #Ext  Free  MaxLV MaxPV #PV #PV Missing #LV #SN Seq VG Tags VProfile #VMda #VMdaUse VMdaFree  VMdaSize  #VMdaCps 
  lvm2 gz48bt-g6b7-Mvo4-dGvb-n1Lz-oNlU-ApieVp test wz--n- writeable  extendable                       normal                47.98g 47.98g                                     4.00m 12282 12282     0     0   6           0   0   0   1                      6        6        0   1020.00k unmanaged
  Fmt  PV UUID                                DevSize PV         Maj Min PMdaFree  PMdaSize  PExtVsn 1st PE  PSize PFree Used Attr Allocatable Exported   Missing    PE   Alloc PV Tags #PMda #PMdaUse BA Start BA Size PInUse Duplicate
  lvm2 4mFHsF-FtMD-KI3H-QDfx-hQ0J-Qw3n-WQiFCF   8.00g /dev/sdb   8   16         0   1020.00k       2   1.00m 8.00g 8.00g   0  a--  allocatable                       2047     0             1        1       0       0    used          
  lvm2 1rgHsY-cHTL-5Gu1-NSi9-y9j6-9x79-fg0C2k   8.00g /dev/sdc   8   32         0   1020.00k       2   1.00m 8.00g 8.00g   0  a--  allocatable                       2047     0             1        1       0       0    used          
  lvm2 j5SAve-FCCA-5EeU-7798-0p4d-ZWYM-2bvpWM   8.00g /dev/sdd   8   48         0   1020.00k       2   1.00m 8.00g 8.00g   0  a--  allocatable                       2047     0             1        1       0       0    used          
  lvm2 3DXDsi-W1lM-sBX0-eHkc-3dhV-lIV8-80nedc   8.00g /dev/sde   8   64         0   1020.00k       2   1.00m 8.00g 8.00g   0  a--  allocatable                       2047     0             1        1       0       0    used          
  lvm2 kTaSiz-Dwl4-hDnd-pUq7-5uss-ll10-DG8cJK   8.00g /dev/sdf   8   80         0   1020.00k       2   1.00m 8.00g 8.00g   0  a--  allocatable                       2047     0             1        1       0       0    used          
  lvm2 TM5Dp3-31ep-FIwd-WVNX-tDGL-p4gG-6pJJRS   8.00g /dev/sdg   8   96         0   1020.00k       2   1.00m 8.00g 8.00g   0  a--  allocatable                       2047     0             1        1       0       0    used          
  Start SSize PV UUID                                LV UUID                               
      0  2047 1rgHsY-cHTL-5Gu1-NSi9-y9j6-9x79-fg0C2k                                       
      0  2047 3DXDsi-W1lM-sBX0-eHkc-3dhV-lIV8-80nedc                                       
      0  2047 4mFHsF-FtMD-KI3H-QDfx-hQ0J-Qw3n-WQiFCF                                       
      0  2047 TM5Dp3-31ep-FIwd-WVNX-tDGL-p4gG-6pJJRS                                       
      0  2047 j5SAve-FCCA-5EeU-7798-0p4d-ZWYM-2bvpWM                                       
      0  2047 kTaSiz-Dwl4-hDnd-pUq7-5uss-ll10-DG8cJK                                       
lvm> fullreport
lvm> fullreport
lvm> pvs
  PV         VG Fmt  Attr PSize PFree
  /dev/sdb      lvm2 ---  8.00g 8.00g
  /dev/sdc      lvm2 ---  8.00g 8.00g
  /dev/sdd      lvm2 ---  8.00g 8.00g
  /dev/sde      lvm2 ---  8.00g 8.00g
  /dev/sdf      lvm2 ---  8.00g 8.00g
  /dev/sdg      lvm2 ---  8.00g 8.00g
lvm>

Comment 1 Peter Rajnoha 2017-03-06 09:52:02 UTC
Hi Tony. I haven't managed to reproduce this yet. Have you changed any configuration (lvmconfig --type diff)? Can you paste the fullreport commands with -vvvv?

Comment 2 Tony Asleson 2017-03-06 16:51:23 UTC
Created attachment 1260473 [details]
lvm shell output of fullreport -vvvvv

Comment 3 Tony Asleson 2017-03-06 16:52:40 UTC
No configuration changes have been made, this is a default F25 installation utilizing distributed lvm2 RPM packages.  lvmconfig --type diff comes back empty.

Comment 4 Tony Asleson 2017-03-06 17:02:16 UTC
This is interesting, if I only use the first 2 PVs /dev/sdb & /dev/sdc, to create the VG only those 2 PVs are missing after I remove the VG, sde.. sdg are still present.