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 - libguestfs: unknown filesystem label SWAP-sda2
Summary: libguestfs: unknown filesystem label SWAP-sda2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libguestfs
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 672831 732637
Blocks: 696451
TreeView+ depends on / blocked
 
Reported: 2011-01-01 01:55 UTC by Douglas Schilling Landgraf
Modified: 2018-11-14 19:45 UTC (History)
9 users (show)

Fixed In Version: libguestfs-1.7.17-25.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 696451 (view as bug list)
Environment:
Last Closed: 2011-12-06 10:42:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch (549 bytes, patch)
2011-01-01 02:39 UTC, Douglas Schilling Landgraf
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1512 0 normal SHIPPED_LIVE libguestfs bug fix update 2011-12-06 00:39:11 UTC

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


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