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 1170974 - test case 025 of qemu-iotests fail for raw with qemu-kvm-1.5.3-83.el7.x86_64
Summary: test case 025 of qemu-iotests fail for raw with qemu-kvm-1.5.3-83.el7.x86_64
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Kevin Wolf
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-05 08:51 UTC by Sibiao Luo
Modified: 2015-11-19 04:50 UTC (History)
13 users (show)

Fixed In Version: qemu-kvm-1.5.3-104.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 04:50:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2213 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2015-11-19 08:16:10 UTC

Description Sibiao Luo 2014-12-05 08:51:52 UTC
Description of problem:
test case 025 of qemu-iotests fail for raw with qemu-kvm-1.5.3-83.el7.x86_64.

Version-Release number of selected component (if applicable):
host info:
# uname -r && rpm -q qemu-kvm
3.10.0-211.el7.x86_64
qemu-kvm-1.5.3-83.el7.x86_64
qemu-kvm.git branch:
# git branch -v
  all                d3697f2 Update to qemu-kvm-1.5.3-83.el7
* rhel7/master-1.5.3 d3697f2 Update to qemu-kvm-1.5.3-83.el7
  rhev7-master-2.1.2 0f80785 [behind 5] Update to qemu-kvm-rhev-2.1.2-14.el7

How reproducible:
100%

Steps to Reproduce:
1.# git clone git://git.app.eng.bos.redhat.com/virt/rhel7/qemu-kvm.git
2.# cd qemu-kvm
  # git branch -a                           

  # git branch -v
    all                d3697f2 Update to qemu-kvm-1.5.3-83.el7
  * rhel7/master-1.5.3 d3697f2 Update to qemu-kvm-1.5.3-83.el7
    rhev7-master-2.1.2 0f80785 [behind 5] Update to qemu-kvm-rhev-2.1.2-14.el7
3.# git pull
4.# ./configure --target-list=x86_64-softmmu; make
5.Go to /home/qemu-kvm/tests/qemu-iotests directory.
  # export QEMU_PROG=/usr/libexec/qemu-kvm
6.# ./check -qcow2|vmdk|vhdx|raw...

Actual results:
test case 025 of qemu-iotests fail for raw with qemu-kvm-1.5.3-83.el7.x86_64.
Not run: 006 007 013 014 015 017 018 019 020 022 023 024 026 027 028 029 030 031 034 035 036 037 038 039 040 041 042 043 044 046 047 049 050 051 053 054 059 060 061 062 064 065 066 067 068 070 075 076 078 079 080 082 084 086 087 088 092
Failures: 025
Failed 1 of 20 tests

Expected results:
It should passed all testing cases successfully.

Additional info:

Comment 1 Sibiao Luo 2014-12-05 09:13:58 UTC
# ./check -raw
QEMU          -- /usr/libexec/qemu-kvm
QEMU_IMG      -- /usr/bin/qemu-img
QEMU_IO       -- /usr/bin/qemu-io 
IMGFMT        -- raw
IMGPROTO      -- file
PLATFORM      -- Linux/x86_64 dhcp-11-154 3.10.0-211.el7.x86_64

001 2s ...
...<cutoff here>...
025 2s ... - output mismatch (see 025.out.bad)
--- 025.out	2014-12-01 14:52:28.285233059 +0800
+++ 025.out.bad	2014-12-05 16:42:01.903610048 +0800
@@ -10,9 +10,9 @@
 No errors were found on the image.
 
 === Resizing image
-128 MiB
-384 MiB
-No errors were found on the image.
+qemu-io> 128 MiB
+qemu-io> qemu-io> 384 MiB
+qemu-io> No errors were found on the image.
 
 === Verifying image size after reopen
 384 MiB
026 481s ... [not run] not suitable for this image format: raw
...<cutoff here>...

Comment 2 Sibiao Luo 2014-12-05 09:14:19 UTC
# cat 025.out.bad
QA output created by 025
=== Creating image

Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 

=== Writing whole image
=== IO: pattern 0xc5
wrote 134217728/134217728 bytes at offset 0
128 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
No errors were found on the image.

=== Resizing image
qemu-io> 128 MiB
qemu-io> qemu-io> 384 MiB
qemu-io> No errors were found on the image.

=== Verifying image size after reopen
384 MiB

=== Verifying resized image
=== IO: pattern 0xc5
read 134217728/134217728 bytes at offset 0
128 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
=== IO: pattern 0
read 268435456/268435456 bytes at offset 134217728
256 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
*** done

Comment 5 Ademar Reis 2015-09-18 13:29:05 UTC
patch is trivial (both implementation and testing from QE), fixes an automated test that will help preventing other errors in the future.

Requesting exception+.

Comment 6 Miroslav Rezanina 2015-09-23 05:31:44 UTC
Fix included in qemu-kvm-1.5.3-104.el7

Comment 8 Qian Guo 2015-09-24 08:19:48 UTC
Reproduced with qemu-kvm-1.5.3-83.el7

Steps:
# git branch -v
* (detached from qemu-kvm-1.5.3-83.el7) d3697f2 Update to qemu-kvm-1.5.3-83.el7

# ./check -raw

Result:
Not run: 006 007 013 014 015 017 018 019 020 022 023 024 026 027 028 029 030 031 034 035 036 037 038 039 040 041 042 043 044 046 047 049 050 051 053 054 059 060 061 062 064 065 066 067 068 070 075 076 078 079 080 082 084 086 087 088 092
Failures: 025
Failed 1 of 20 tests


So this bug is reproduced.

Test with qemu-kvm-1.5.3-104.el7

# git branch -v
* rhel7/master-1.5.3 2125932 Update to qemu-kvm-1.5.3-104.el7
# ./check -raw
...
Not run: 006 007 013 014 015 017 018 019 020 022 023 024 026 027 028 029 030 031 034 035 036 037 038 039 040 041 042 043 044 046 047 049 050 051 053 054 059 060 061 062 064 065 066 067 068 069 070 075 076 078 079 080 082 084 086 087 088 092 105 107 108 111 114 121 130 135
Passed all 20 tests

So this bug is fixed.

Comment 9 juzhang 2015-09-25 02:10:51 UTC
According to comment8, set this issue as verified.

Comment 11 errata-xmlrpc 2015-11-19 04:50:29 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.

https://rhn.redhat.com/errata/RHBA-2015-2213.html


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