Bug 1054761

Summary: guestfs_pvs prints "unknown device" if a physical volume is missing
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, mbooth, ptoscano
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-22 18:03:11 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 Richard W.M. Jones 2014-01-17 12:31:17 UTC
Description of problem:

(Reported by Исаев Виталий Анатольевич)

When a PV is missing, pvs should not return the literal string
"unknown device".

For example:

$ guestfish -N disk -N disk pvcreate /dev/sda : pvcreate /dev/sdb : vgcreate VG "/dev/sda /dev/sdb"
$ guestfish -a test1.img run : pvs
/dev/sda
unknown device                       << note

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

libguestfs 1.16 - 1.25

How reproducible:

100%

Steps to Reproduce:
1. See reproducer above.

Expected results:

I'm not sure what it should do here.  Probably it should ignore
the missing device.  An alternative is to print an error.

Comment 1 Richard W.M. Jones 2014-01-22 18:03:11 UTC
Fixed upstream in:
https://github.com/libguestfs/libguestfs/commit/aa2ca8ba703254267939dfcd8d276cbd6f651858