Bug 678231

Summary: virt-inspector reports unknown filesystem UUID
Product: Red Hat Enterprise Linux 6 Reporter: Rita Wu <rwu>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 6.1CC: cwei, mbooth, mshao, whuang, yupzhang, yuzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.7.17-25.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 700342 (view as bug list) Environment:
Last Closed: 2011-12-06 10:42:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 700342    
Attachments:
Description Flags
fedora.img.xz none

Description Rita Wu 2011-02-17 08:38:07 UTC
Description of problem:
virt-inspector will report error message when swap is recorded via UUID in fstab.

fstab entry in rhel4u8 VM:
UUID=d7c01559-d48e-4951-829f-ba926cb73719 swap swap    defaults        0 0 


Version-Release number of selected component (if applicable):
libguestfs-1.7.17-12.el6.x86_64
libguestfs-tools-1.7.17-12.el6.x86_64
libguestfs-mount-1.7.17-12.el6.x86_64
libguestfs-tools-c-1.7.17-12.el6.x86_64
libguestfs-java-1.7.17-12.el6.x86_64
libguestfs-winsupport-1.0-5.el6.x86_64
libguestfs-devel-1.7.17-12.el6.x86_64


How reproducible:
always

Steps to Reproduce:
1. # virt-inspector --perl rhel4-32-hvm-min.img
unknown filesystem UUID d7c01559-d48e-4951-829f-ba926cb73719
$VAR1 = '/dev/sda1';
$VAR2 = {
          'initrd_modules' => {
                                '2.6.9-89.EL' => [
                                                   'lib/ext3.ko',
                                                   'lib/jbd.ko'
                                                 ]
                              },
          'arch' => 'i386',
          'apps' => [
                      {
                        'epoch' => undef,
                        'arch' => 'i386',
                        'version' => '3.15.2',
                        'name' => 'MAKEDEV',
                        'release' => '3'
...
  
Actual results:
unknown filesystem UUID d7c01559-d48e-4951-829f-ba926cb73719

Expected results:
No warning about 'unkown filesystem UUID'

Additional info:

Comment 1 Richard W.M. Jones 2011-03-08 08:28:53 UTC
This is just a warning and the fix is not so trivial.
Moving to 6.2.

Comment 2 Richard W.M. Jones 2011-06-10 09:16:19 UTC
Matt, is this going to be fixed by the rebase of virt-v2v
in 6.2?  It seems that it will be, if we move to using
the core inspection code.

Comment 3 Richard W.M. Jones 2011-06-10 09:58:48 UTC
Answer is yes, so we should be able to fix this more
easily in 6.2.

Comment 4 Richard W.M. Jones 2011-08-10 17:20:11 UTC
Sorry, I have totally misunderstood this bug (my fault, not
the reporter).  Although the bug is in Perl inspection code,
it affects virt-inspector (old version) not virt-v2v.

I will try to look at this tomorrow.

Comment 5 Richard W.M. Jones 2011-08-11 10:25:51 UTC
Created attachment 517766 [details]
fedora.img.xz

*** REPRODUCER ***

This is a reproducer disk image.  Download the attachment and
unpack it:

$ unxz fedora.img.xz
$ md5sum fedora.img 
6657b9a3d2eb395e141ebe71969dc865  fedora.img

Now run old virt-inspector from RHEL 6.1 on it:

$ virt-inspector fedora.img 
unknown filesystem label SWAP-lv1
unknown filesystem UUID dde7e2c9-a436-4d77-97c2-c8d1224d0457
Error running rpm -qa: command_lines: rpm: No such file or directory at /usr/lib64/perl5/vendor_perl/Sys/Guestfs/Lib.pm line 1022.
linux fedora x86_64 14 (Fedora release 14 (Phony)) on /dev/VG/Root:
  Mountpoints:
    /dev/VG/Root                   /
    /dev/sda1                      /boot
  Filesystems:
    /dev/VG/Root:
      label: ROOT
      UUID: 01234567-0123-0123-0123-012345678902
      type: ext2
      content: linux-root
    /dev/sda1:
      label: BOOT
      UUID: 01234567-0123-0123-0123-012345678901
      type: ext2
      content: linux-grub
  Applications:

NOTE: "Error running rpm -qa" is NOT an error.  This is because this test
image is not a real VM disk image, it's just enough of a disk image to
demonstrate this bug.

What we are looking at here are the two warnings:

unknown filesystem label SWAP-lv1  (bug 666578)
unknown filesystem UUID dde7e2c... (this bug)

You can also try running new virt-inspector2 on the disk image, which
should just produce ordinary XML output with no warnings.  This is
because virt-inspector2 is the rewritten codebase which doesn't use the
old Perl inspection code.  The bug only exists in the old Perl inspection
code.

Comment 8 Huang Wenlong 2011-08-23 05:23:36 UTC
Verify this bug in libguestfs-1.7.17-26.el6.x86_64 and virt-v2v-0.8.3-1.el6.x86_64


# virt-v2v -ic xen+ssh://10.66.72.123 -os r6 -b breth0 rhel4-32-hvm-min
rhel4-32-hvm-min.img: 100% [====================================================]D 0h00m52s
virt-v2v: rhel4-32-hvm-min configured with virtio drivers.

No error message .

Comment 9 errata-xmlrpc 2011-12-06 10:42:17 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1512.html