Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1362007 - qemu-img should give meaningful error messages when create an image over blkdebug
Summary: qemu-img should give meaningful error messages when create an image over blkd...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Max Reitz
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-01 07:34 UTC by Ping Li
Modified: 2016-09-21 13:22 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-21 13:22:30 UTC


Attachments (Terms of Use)

Description Ping Li 2016-08-01 07:34:19 UTC
Description of problem:
When create an image over blkdebug with qemu-kvm-rhev-0.12.1.2-2.493.el6, qemu-img throws the following error:
Formatting 'blkdebug:blkdebug.cfg:new.qcow2', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 
Formatting or formatting option not supported for file format 'qcow2

But do the same operation with qemu-kvm-rhev-2.6.0-17.el7, it will give the error as:
qemu-img: blkdebug:blkdebug.cfg:new.qcow2: Protocol driver 'blkdebug' does not support image creation

The error prompt on qemu-kvm-rhev-2.6.0-17.el7 is nice and clear.

Version-Release number of selected component (if applicable):
# rpm -qa | grep qemu-kvm-rhev
qemu-kvm-rhev-0.12.1.2-2.493.el6.x86_64
# uname -r
2.6.32-652.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.#cat > blkdebug.cfg << eof
[inject-error]
event = "l2_update_compressed"
errno = "28"
immediately = "off"
eof
2.#qemu-img create -f qcow2 blkdebug:blkdebug.cfg:new.qcow2 1G

Actual results:
Get the following error:
Formatting 'blkdebug:blkdebug.cfg:new.qcow2', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 
Formatting or formatting option not supported for file format 'qcow2'

Expected results:
Better to show error as:
qemu-img: blkdebug:blkdebug.cfg:new.qcow2: Protocol driver 'blkdebug' does not support image creation

Additional info:

Comment 3 Max Reitz 2016-09-21 13:22:30 UTC
Hi,

There is no simple fix for this; compare BZ 1026524 which tracked kind of the same issue for RHEL 7 and whose backport consisted of 43 patches.

Considering that effort (and how little the gain would be), I don't think it makes sense to fix this issue for RHEL 6 at this point. Therefore, I'm closing this BZ for now.

Max


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