Bug 1257059
| Summary: | qemu-iotests 099 failed for vmdk | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | mazhang <mazhang> |
| Component: | qemu-kvm-rhev | Assignee: | Kevin Wolf <kwolf> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.2 | CC: | huding, juzhang, knoel, kwolf, mazhang, michen, mrezanin, virt-maint, xfu |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-rhev-2.3.0-23.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-12-04 16:54:45 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
mazhang
2015-08-26 07:57:23 UTC
The error "Driver 'blkverify' is not whitelisted" means that you need to compile QEMU locally without excluding blkverify driver. In other words, the iotests doesn't work with the qemu-kvm binary that comes with rpm. The whole point of having a downstream qemu-iotests is testing our RPMs. We simply need to disable test 099, like we already disabled 071. This is a trivial one-liner and cannot possibly break anything because it is in a file that isn't even shipped but only used internally for QA, so I'll send the patch and move this back to 7.2, so I won't have to look at this again in the 7.3 cycle. Fix included in qemu-kvm-rhev-2.3.0-23.el7 Reproduce this bug using the version:
kernel-3.10.0-316.el7.x86_64
qemu-kvm-rhev-2.3.0-22.el7.x86_64
1. download qemu-kvm-rhev-2.3.0-22.el7.src.rpm
2. # rpmbuild -bp --nodeps qemu-kvm-rhev-2.3.0-22.el7.src.rpm
3. # cd /root/rpmbuild/BUILD/qemu-2.3.0/tests/qemu-iotests
4. # export QEMU_PROG=/usr/libexec/qemu-kvm
5. #./check -vmdk
Test case 099 failed:
099 - output mismatch (see 099.out.bad)
--- /root/rpmbuild/BUILD/qemu-2.3.0/tests/qemu-iotests/099.out 2015-04-27 22:08:28.000000000 +0800
+++ 099.out.bad 2015-09-18 13:53:52.828601716 +0800
@@ -4,25 +4,25 @@
=== Testing simple filename for blkverify ===
-blkverify:TEST_DIR/t.IMGFMT.compare:TEST_DIR/t.IMGFMT
+QEMU_PROG: -drive if=none,id=drv0,file=blkverify:TEST_DIR/t.IMGFMT.compare:TEST_DIR/t.IMGFMT: Driver 'blkverify' is not whitelisted
=== Testing filename reconstruction for blkverify ===
-blkverify:TEST_DIR/t.IMGFMT.compare:TEST_DIR/t.IMGFMT
+QEMU_PROG: -drive if=none,id=drv0,file.driver=blkverify,file.raw.filename=TEST_DIR/t.IMGFMT.compare,file.test.file.filename=TEST_DIR/t.IMGFMT: Driver 'blkverify' is not whitelisted
=== Testing JSON filename for blkdebug ===
-json:{"driver": "IMGFMT", "file": {"image": {"driver": "file", "filename": "TEST_DIR/t.IMGFMT"}, "driver": "blkdebug", "inject-error.0.event": "l1_update"}}
+QEMU_PROG: -drive if=none,id=drv0,file.driver=blkdebug,file.image.filename=TEST_DIR/t.IMGFMT,file.inject-error.0.event=l1_update: Driver 'IMGFMT' can only be used for read-only devices
=== Testing indirectly enforced JSON filename ===
-json:{"driver": "raw", "file": {"test": {"driver": "IMGFMT", "file": {"image": {"driver": "file", "filename": "TEST_DIR/t.IMGFMT"}, "driver": "blkdebug", "inject-error.0.event": "l1_update"}}, "driver": "blkverify", "raw": {"driver": "file", "filename": "TEST_DIR/t.IMGFMT.compare"}}}
+QEMU_PROG: -drive if=none,id=drv0,file.driver=blkverify,file.raw.filename=TEST_DIR/t.IMGFMT.compare,file.test.file.driver=blkdebug,file.test.file.image.filename=TEST_DIR/t.IMGFMT,file.test.file.inject-error.0.event=l1_update: Driver 'blkverify' is not whitelisted
=== Testing plain filename for blkdebug ===
-blkdebug:TEST_DIR/blkdebug.conf:TEST_DIR/t.IMGFMT
+QEMU_PROG: -drive if=none,id=drv0,file.driver=blkdebug,file.config=TEST_DIR/blkdebug.conf,file.image.filename=TEST_DIR/t.IMGFMT: Driver 'IMGFMT' can only be used for read-only devices
=== Testing plain filename for blkdebug without configuration file ===
-blkdebug::TEST_DIR/t.IMGFMT
+QEMU_PROG: -drive if=none,id=drv0,file.driver=blkdebug,file.image.filename=TEST_DIR/t.IMGFMT: Driver 'IMGFMT' can only be used for read-only devices
*** done
Verify this bug using the version: kernel-3.10.0-316.el7.x86_64 qemu-kvm-rhev-2.3.0-23.el7.x86_64 1. download qemu-kvm-rhev-2.3.0-23.el7.src.rpm 2. # rpmbuild -bp --nodeps qemu-kvm-rhev-2.3.0-23.el7.src.rpm 3. # cd /root/rpmbuild/BUILD/qemu-2.3.0/tests/qemu-iotests 4. # export QEMU_PROG=/usr/libexec/qemu-kvm 5. #./check -vmdk Test case 099 is disabled as following: 094 [not run] not suitable for this image protocol: file 095 [not run] not suitable for this image format: vmdk 097 [not run] not suitable for this image format: vmdk 098 [not run] not suitable for this image format: vmdk 100 101 [not run] not suitable for this image format: vmdk Based on the above result, I think this bug has been fixed. 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. https://rhn.redhat.com/errata/RHBA-2015-2546.html |