Bug 666578
| Summary: | libguestfs: unknown filesystem label SWAP-sda2 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Douglas Schilling Landgraf <dougsland> | ||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.0 | CC: | 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
Douglas Schilling Landgraf
2011-01-01 01:55:24 UTC
fstab entry: LABEL=SWAP-sda2 swap swap defaults 0 0 Created attachment 471307 [details]
patch
Attached proposed patch to upstream.
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 For a reproducer, see: https://bugzilla.redhat.com/show_bug.cgi?id=678231#c5 Upstream fix: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=b9838001015a06a69a08b69d9f013d82f0ea3139 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.
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 |