Bug 856505
Summary: | Missing error message in bdrv_commit to read-only backing file | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Joy Pu <ypu> | |
Component: | qemu-kvm | Assignee: | Jeff Cody <jcody> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.4 | CC: | acathrow, areis, bsarathy, jcody, juzhang, kwolf, lnovich, mkenneth, qzhang, rhod, sluo, virt-maint, zhzhang | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-0.12.1.2-2.397.el6 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 856598 894250 894251 894253 (view as bug list) | Environment: | ||
Last Closed: | 2013-11-21 05:52:20 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 856598 |
Description
Joy Pu
2012-09-12 07:46:56 UTC
I tried the rhel7 aslo hit this issue, clone it to rhel7 for fixing, please correct me if any error. In bdrv_commit(), we are (appropriately) refusing to write to the backing file (in this case, the top-level snapshot, as the active layer is a temp image). The function bdrv_reopen() returns an error, and bdrv_commit() returns -EACCES. However, do_commit(), which is the message handler that calls bdrv_commit(), only checks for -EBUSY when it comes to returning an error message. Patch submitted upstream: https://lists.gnu.org/archive/html/qemu-devel/2013-01/msg03456.html Reproduce with qemu-kvm-0.12.1.2-2.394.el6.x86_64 Steps to Reproduce: 1. Boot a guest: .... -drive file=/home/RHEL6.5-64-0905.qcow2,if=none,id=drive-system-disk,media=disk,format=qcow2,aio=native,werror=stop,rerror=stop,snapshot=on,readonly=on -device virtio-blk-pci,scsi=on,bus=pci.0,drive=drive-system-disk,id=system-disk,bootindex=1,addr=0x5 ................... 2. Create big file in guest: dd if=/dev/zero of=dd_1G bs=1M count=1024 3. Commit in qemu monitor (qemu) commit drive-system-disk Actual Results: commit will not return error message Verify with qemu-kvm-0.12.1.2-2.400.el6.x86_64 steps as above Actual Results: (qemu) commit drive-system-disk 'commit' error for 'drive-system-disk': Permission denied Based on above information, this issue 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. http://rhn.redhat.com/errata/RHSA-2013-1553.html |