Bug 1515604
Summary: | qemu-img info: failed to get "consistent read" lock on a mirroring image | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Han Han <hhan> |
Component: | qemu-kvm-rhev | Assignee: | Kevin Wolf <kwolf> |
Status: | CLOSED ERRATA | QA Contact: | Qianqian Zhu <qizhu> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.5 | CC: | chayang, coli, dyuan, juzhang, kwolf, lmiksik, michen, mrezanin, ngu, qizhu, qzhang, virt-maint, xuzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.10.0-17.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-11 00:49:36 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
Han Han
2017-11-21 05:52:00 UTC
Fix is on the mailing list: [PATCH for-2.11 0/2] Fix 'qemu-img info' on mirror target https://lists.gnu.org/archive/html/qemu-block/2017-11/msg00796.html Turns out this fixed only raw images, but not image formats. Sent a follow-up: [PATCH] block: Formats don't need CONSISTENT_READ with NO_IO http://lists.gnu.org/archive/html/qemu-block/2017-11/msg01191.html Fix included in qemu-kvm-rhev-2.10.0-17.el7 Reproduced on qemu-kvm-rhev-10:2.10.0-14.el7.x86_64: Steps: 1. Launch guest: /usr/libexec/qemu-kvm \ -name A \ -machine pc,accel=kvm \ -monitor stdio \ -drive file=/home/kvm_autotest_root/images/rhel74-64-virtio.qcow2,format=qcow2,if=none,id=drive-virtio-blk0,werror=stop,rerror=stop \ -device virtio-blk-pci,drive=drive-virtio-blk0,id=virtio-blk0 2. Block mirror: (qemu) drive_mirror drive-virtio-blk0 mirror 3. # qemu-img info -U mirror Results: Can't get image information. # qemu-img info -U mirror qemu-img: Could not open 'mirror': Failed to get "consistent read" lock Is another process using the image? Verified on qemu-kvm-rhev-2.10.0-17.el7.x86_64: Steps same as above. Results: Get image information correctly. # qemu-img info -U mirror image: mirror file format: qcow2 virtual size: 20G (21474836480 bytes) disk size: 1.9G cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false Moving 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. https://access.redhat.com/errata/RHSA-2018:1104 |