Bug 691724
Summary: | virt-inspector reports unknown filesystem /dev/vda1 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Rita Wu <rwu> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | cwei, jzheng, leiwang, syeghiay |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.7.17-16.el6 | Doc Type: | Bug Fix |
Doc Text: |
If the /etc/fstab of a guest machine contained a reference to a virtio disk (/dev/vda1), virt-inspector printed a warning and ignored the virtio disk. The warning has been suppressed, and virtio disks are now recognized by virt-inspector.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2011-05-19 11:44:51 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: |
Description
Rita Wu
2011-03-29 10:47:23 UTC
Yes, Linglu's analysis looks right, and it's a simple fix too. The equivalent in the replacement core inspection code uses this regexp: ^/dev/(?:h|s|v|xv)d([a-z]\d*)$ [1] It seems that simply adding an extra case to the Perl code should fix this. Proposed patch (needs testing): https://www.redhat.com/archives/libguestfs/2011-March/msg00144.html [1] This is also slightly wrong https://rwmj.wordpress.com/2011/01/09/how-are-linux-drives-named-beyond-drive-26-devsdz/ but that is an issue for another day. Manually reproduced this by installing a Fedora 14 guest with virtio and editing /etc/fstab so that it had an entry /dev/vda1 /boot ext4 defaults 1 2 (Normally Fedora 14 doesn't use device entries like this, so I had to edit /etc/fstab). Using Perl virt-inspector from 1.2, I saw the warning message: unknown filesystem /dev/vda1 followed by an error (it wasn't able to mount /boot, so it couldn't parse the grub configuration). This error was a consequence of this bug. I then ran the same virt-inspector from 1.2, but against the newest Perl libraries with the patch from comment 3. virt-inspector now worked correctly. In addition it showed the following correct information for the boot filesystem: <filesystem dev="/dev/sda1"> <label></label> <uuid>a8df64b5-5d2e-4431-8fee-a8bc75782ac8</uuid> <type>ext4</type> <content>linux-grub</content> <spec>/dev/vda1</spec> </filesystem> So I am happy that the patch in comment 3 will fix the problem. Upstream: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=759f4369de965f46f4a93b3a75dada050f87e223 http://brewweb.devel.redhat.com/brew/taskinfo?taskID=3212787 (Build not finished at time of writing) I tested on Linglu's image. libguestfs-1.7.17-15.el6: we see 'unknown filesystem /dev/vda1' on the first line of the output of virt-inspector. libguestfs-1.7.17-16.el6: the 'unknown filesystem /dev/vda1' has gone. btw: Both detected /dev/sda1 as linux-root. The presence of the vda1 error is the only difference. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: If the /etc/fstab of a guest machine contained a reference to a virtio disk (/dev/vda1), virt-inspector printed a warning and ignored the virtio disk. The warning has been suppressed, and virtio disks are now recognized by virt-inspector. This is fine, thanks. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0586.html An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0586.html |