Bug 1148355 - virt-filesystems: incorrect LVM vg name when listing Fedora 21 Alpha Atomic image filesystems
Summary: virt-filesystems: incorrect LVM vg name when listing Fedora 21 Alpha Atomic i...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-01 09:16 UTC by Timothée Ravier
Modified: 2014-10-01 11:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-01 11:13:55 UTC
Embargoed:


Attachments (Terms of Use)
libguestfs-test-tool output (41.86 KB, text/plain)
2014-10-01 09:17 UTC, Timothée Ravier
no flags Details

Description Timothée Ravier 2014-10-01 09:16:19 UTC
Description of problem:
The virt-filesystems tool displays incorrect LVM vg name for the Fedora 21 Alpha Atomic image.

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

How reproducible:
Always

Steps to Reproduce:
1. Download Fedora 21 Alpha Atomic image: http://download.fedoraproject.org/pub/fedora/linux/releases/test/21-Alpha/Cloud/Images/x86_64/Fedora-Cloud-Atomic-20140915-21_Alpha.x86_64.qcow2
2. Run: virt-filesystems -a Fedora-Cloud-Atomic-20140915-21_Alpha.x86_64.qcow2
3. Run: guestfish -a Fedora-Cloud-Atomic-20140915-21_Alpha.x86_64.qcow2, then run, list-filesystems

Actual results:
virt-filesystems output:
/dev/sda1
/dev/sdora-cloud/root

guestfish output:
/dev/sda1: ext4
/dev/fedora-cloud/root: ext4
/dev/fedora-cloud/swap: swap

Expected results:
virt-filesystems output:
/dev/sda1
/dev/fedora-cloud/root

Additional info:
Tested on Arch Linux.

Comment 1 Timothée Ravier 2014-10-01 09:17:20 UTC
Created attachment 942972 [details]
libguestfs-test-tool output

Comment 2 Richard W.M. Jones 2014-10-01 11:01:23 UTC
Hmm, I can reproduce this .. not good at all.

$ virt-filesystems -a Fedora-Cloud-Atomic-20140915-21_Alpha.x86_64.qcow2 
/dev/sda1
/dev/sdora-cloud/root

Comment 3 Richard W.M. Jones 2014-10-01 11:13:55 UTC
Luckily just a stupid mistake in guestfs_canonical_device_name API
and not some horrible data corruptor.  The fix is:

https://github.com/libguestfs/libguestfs/commit/886c566756d02f8568c20585a0936c387105b061

In libguestfs >= 1.27.57, and likely to be backported to the
stable branch.


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