Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 666578

Summary: libguestfs: unknown filesystem label SWAP-sda2
Product: Red Hat Enterprise Linux 6 Reporter: Douglas Schilling Landgraf <dougsland>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: dallan, jzheng, leiwang, mbooth, moshiro, mshao, myamazak, rwu, 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:
: 696451 (view as bug list) Environment:
Last Closed: 2011-12-06 10:42:09 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: 672831, 732637    
Bug Blocks: 696451    
Attachments:
Description Flags
patch none

Description Douglas Schilling Landgraf 2011-01-01 01:55:24 UTC
Description of problem:

virt-v2v reports the following error messages when it migrates from a
RHEL4.8 VMware ESX's guest OS to LVM

Version-Release number of selected component (if applicable):
virt-v2v-0.6.2-4.el6.x86_64

How reproducible:
# virt-v2v -ic esx://192.168.1.10/?no_verify=1 -op default --bridge br0 rhel48_34
** HEAD https://192.168.1.10/folder/rhel48_34/rhel48_34-flat.vmdk?dcPath=ha-datacenter&dsName=local_disk ==> 401 Unauthorized
** HEAD https://192.168.1.10/folder/rhel48_34/rhel48_34-flat.vmdk?dcPath=ha-datacenter&dsName=local_disk ==> 200 OK
** GET https://192.168.1.10/folder/rhel48_34/rhel48_34-flat.vmdk?dcPath=ha-datacenter&dsName=local_disk ==> 200 OK (1275s)
unknown filesystem label SWAP-sda2
virt-v2v: rhel48_34 configured with virtio drivers

Actual results:
virt-v2v reporting error

Comment 1 Douglas Schilling Landgraf 2011-01-01 02:16:50 UTC
fstab entry:

LABEL=SWAP-sda2         swap                    swap    defaults        0 0

Comment 2 Douglas Schilling Landgraf 2011-01-01 02:39:44 UTC
Created attachment 471307 [details]
patch

Attached proposed patch to upstream.

Comment 4 Rita Wu 2011-02-16 07:55:29 UTC
Test it with the following pkgs:

libguestfs-1.7.17-12.el6.x86_64 
libguestfs-*-1.7.17-12.el6.x86_64
virt-v2v-0.7.1-3.el6.x86_64


But still fails, details as below:
1. fstab entry:
LABEL=SWAP-sda2         swap                    swap    defaults        0 0

2.# virt-v2v -ic xen+ssh://10.66.72.123 -o rhev -osd 10.66.90.115:/vol/v2vrwu1/xen_export rhel4-32-hvm-min --bridge rhevm
rhel4-32-hvm-min.img: 100% [=========================================]D 0h00m55s
unknown filesystem label SWAP-hda2
virt-v2v: rhel4-32-hvm-min configured with virtio drivers

Comment 13 Richard W.M. Jones 2011-08-11 10:26:10 UTC
For a reproducer, see:
https://bugzilla.redhat.com/show_bug.cgi?id=678231#c5

Comment 16 Jinxin Zheng 2011-08-29 08:37:41 UTC
Reproduced this on libguestfs-1.7.17-19.

The testing image contains the following fstab:

$ guestfish -a rhel4-32-hvm-min.img -m /dev/sda1 cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=SWAP-hda2         swap                    swap    defaults        0 0
/dev/hdc                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0

Test script:
$ virt-inspector rhel4-32-hvm-min.img

libguestfs-1.7.17-19 result:

unknown filesystem label SWAP-hda2
linux rhel i386 4.8 (Red Hat Enterprise Linux AS release 4 (Nahant Update 8)) on /dev/sda1:
  Mountpoints:
    /dev/sda1                      /
  Filesystems:
    /dev/sda1:
      label: /
      UUID: e258314e-d326-4285-9a1c-0ef0082ddac3
      type: ext3
      content: linux-root
...



libguestfs-1.7.17-26 result:

linux rhel i386 4.8 (Red Hat Enterprise Linux AS release 4 (Nahant Update 8)) on /dev/sda1:
  Mountpoints:
    /dev/sda1                      /
    /dev/sda2                      swap
  Filesystems:
    /dev/sda1:
      label: /
      UUID: e258314e-d326-4285-9a1c-0ef0082ddac3
      type: ext3
      content: linux-root
    /dev/sda2:
      type: swap
...

Putting this to VERIFIED.

Comment 18 errata-xmlrpc 2011-12-06 10:42:09 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