Bug 1054761 - guestfs_pvs prints "unknown device" if a physical volume is missing
Summary: guestfs_pvs prints "unknown device" if a physical volume is missing
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-17 12:31 UTC by Richard W.M. Jones
Modified: 2014-01-22 18:03 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-22 18:03:11 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.