Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem: create a QED format disk and make live snapshot specified QED format, then dd to the QED snapshot in guest, then BLOCK_IO_ERROR with 'Permission denied' message both in HMP and QMP monitor. BTW, if use a qcow2 format disk and make live snapshot specified qcow2 format, then it can dd to the QED snapshot in guest successfully. Version-Release number of selected component (if applicable): host info: # uname -r && rpm -q qemu-kvm-rhev && rpm -q seabios 2.6.32-420.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.406.el6.x86_64 seabios-0.6.1.2-28.el6.x86_64 guest info: 2.6.32-420.el6.x86_64 How reproducible: 3/3 Steps to Reproduce: 1.create a qed data disk. # qemu-img create -f qed my-data-disk.qed 5G Formatting 'my-data-disk.qed', fmt=qed size=5368709120 cluster_size=0 table_size=0 2.boot a guest attach this data disk via scsi-hd interface. e.g:...-drive file=/home/my-data-disk.qed,if=none,id=drive-data-disk,format=qed,cache=none,werror=stop,rerror=stop -device virtio-scsi-pci,bus=pci.0,addr=0x7,id=scsi0 -device scsi-hd,bus=scsi0.0,drive=drive-data-disk,id=data-disk 3.make live snapshot specified QED format. (qemu) info status VM status: running (qemu) info block drive-virtio-disk: removable=0 io-status=ok file=/home/RHEL6.5_20130924.2_x86_64.qed ro=0 drv=qed encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0 drive-data-disk: removable=0 io-status=ok file=/home/my-data-disk.qed ro=0 drv=qed encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0 ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted] floppy0: removable=1 locked=0 tray-open=0 [not inserted] sd0: removable=1 locked=0 tray-open=0 [not inserted] (qemu) snapshot_blkdev drive-data-disk /home/snapshot-file qed Formatting '/home/snapshot-file', fmt=qed size=5368709120 backing_file='/home/my-data-disk.qed' backing_fmt='qed' cluster_size=0 table_size=0 4.dd to the QED snapshot in guest. guest]# dd if=/dev/zero of=/dev/sda bs=1M count=1000 Actual results: after step 4, VM in paused (io-error) status, BLOCK_IO_ERROR with 'Permission denied' message both in HMP and QMP monitor. - HMP: (qemu) block I/O error in device 'drive-data-disk': Permission denied (13) block I/O error in device 'drive-data-disk': Permission denied (13) block I/O error in device 'drive-data-disk': Permission denied (13) block I/O error in device 'drive-data-disk': Permission denied (13) (qemu) info status VM status: paused (io-error) (qemu) cont (qemu) block I/O error in device 'drive-data-disk': Permission denied (13) block I/O error in device 'drive-data-disk': Permission denied (13) block I/O error in device 'drive-data-disk': Permission denied (13) block I/O error in device 'drive-data-disk': Permission denied (13) -QMP: {"execute":"qmp_capabilities"} {"return": {}} {"timestamp": {"seconds": 1380174012, "microseconds": 192697}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-data-disk", "__com.redhat_debug_info": {"message": "Permission denied", "errno": 13}, "__com.redhat_reason": "eother", "operation": "write", "action": "stop"}} {"timestamp": {"seconds": 1380174012, "microseconds": 196907}, "event": "STOP"} {"timestamp": {"seconds": 1380174012, "microseconds": 197319}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-data-disk", "__com.redhat_debug_info": {"message": "Permission denied", "errno": 13}, "__com.redhat_reason": "eother", "operation": "write", "action": "stop"}} {"timestamp": {"seconds": 1380174012, "microseconds": 197627}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-data-disk", "__com.redhat_debug_info": {"message": "Permission denied", "errno": 13}, "__com.redhat_reason": "eother", "operation": "write", "action": "stop"}} {"timestamp": {"seconds": 1380174012, "microseconds": 197919}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-data-disk", "__com.redhat_debug_info": {"message": "Permission denied", "errno": 13}, "__com.redhat_reason": "eother", "operation": "write", "action": "stop"}} {"timestamp": {"seconds": 1380174127, "microseconds": 808709}, "event": "RESUME"} {"timestamp": {"seconds": 1380174127, "microseconds": 809184}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-data-disk", "__com.redhat_debug_info": {"message": "Permission denied", "errno": 13}, "__com.redhat_reason": "eother", "operation": "write", "action": "stop"}} {"timestamp": {"seconds": 1380174127, "microseconds": 809819}, "event": "STOP"} {"timestamp": {"seconds": 1380174127, "microseconds": 810171}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-data-disk", "__com.redhat_debug_info": {"message": "Permission denied", "errno": 13}, "__com.redhat_reason": "eother", "operation": "write", "action": "stop"}} {"timestamp": {"seconds": 1380174127, "microseconds": 810562}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-data-disk", "__com.redhat_debug_info": {"message": "Permission denied", "errno": 13}, "__com.redhat_reason": "eother", "operation": "write", "action": "stop"}} {"timestamp": {"seconds": 1380174127, "microseconds": 810869}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-data-disk", "__com.redhat_debug_info": {"message": "Permission denied", "errno": 13}, "__com.redhat_reason": "eother", "operation": "write", "action": "stop"}} Expected results: It should can write the the QED format snapshot successfully. Additional info: