Summary: | qcow2 crash during discard operation | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Kevin Wolf <kwolf> |
Component: | qemu-kvm-rhev | Assignee: | Kevin Wolf <kwolf> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | huding, juzhang, knoel, virt-maint, xfu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.3.0-18.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-12-04 16:43:08 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: |
Description
Kevin Wolf
2015-05-29 11:51:59 UTC
Fix included in qemu-kvm-rhev-2.3.0-18.el7 Reproduce this bug using the following version: qemu-kvm-rhev-2.3.0-16.el7.x86_64 qemu-img-rhev-2.3.0-16.el7.x86_64 kernel-3.10.0-304.el7.x86_64 Steps to Reproduce: 1. Get the tarball images.n.traces.tar.gz from the link of comment #0 2. unpack the tarball # tar xzvf images.n.traces.tar.gz 3. copy test.img to copy.img # cp test.img copy.img 4. run discard operation # qemu-io copy.img -c 'discard 2210816 2856448' Actual results: after step4, output the info: qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Invalid argument qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Invalid argument ... ... qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed qemu-io: block/qcow2-refcount.c:645: update_refcount_discard: Assertion `d->bytes + length == new_end - new_start' failed. Aborted Test this bug using the following version: qemu-kvm-rhev-2.3.0-18.el7.x86_64 qemu-img-rhev-2.3.0-18.el7.x86_64 kernel-3.10.0-304.el7.x86_64 The test steps are same as comment #2 Test results: after step4, output the info: # qemu-io copy.img -c 'discard 2210816 2856448' qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Invalid argument qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Resource temporarily unavailable qcow2_free_clusters failed: Invalid argument ... ... qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with refcount block); further corruption events will be suppressed discard failed: Input/output error 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 |