Bug 803608

Summary: unexpected error from blockresize
Product: Red Hat Enterprise Linux 6 Reporter: dyuan
Component: libvirtAssignee: Eric Blake <eblake>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 6.3CC: acathrow, ajia, cwei, dallan, eblake, jyang, mzhan
Target Milestone: rcKeywords: TestOnly, Tracking
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-12 19:24:00 UTC Type: ---
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: 732465, 770328    
Bug Blocks:    

Description dyuan 2012-03-15 08:48:22 UTC
Description of problem:
When I did the blockresize with the unsupported format or size, it will report undefined error.

Version-Release number of selected component (if applicable):
libvirt-0.9.10-5.el6
qemu-kvm-0.12.1.2-2.241.el6

How reproducible:
100%

Steps to Reproduce:
1.  # virsh blockresize rhel55 --path /var/lib/libvirt/images/RHEL-Server-5.5-32-virtio.qcow2 --size 3279425546
error: Failed to resize block device '/var/lib/libvirt/images/RHEL-Server-5.5-32-virtio.qcow2'
error: internal error unable to execute QEMU command 'block_resize': An undefined error has ocurred

2.  # virsh blockresize rhel62 --path /var/lib/libvirt/images/rhel62.img --size 527942500000
error: Failed to resize block device '/var/lib/libvirt/images/rhel62.img'
error: internal error unable to execute QEMU command 'block_resize': An undefined error has ocurred
 
Actual results:
error: internal error unable to execute QEMU command 'block_resize': An undefined error has ocurred


Expected results:
More clear error report.


Additional info:

The undefined error is from qemu-kvm, so it should depend on a qemu-kvm bug.

Comment 1 Osier Yang 2012-03-15 09:08:10 UTC
libvirt doesn't have work to do, the error message "An undefined error has
ocurred" is exactly what qemu returns, libvirt will report good error as
long as qemu return good one in this case, so you should reassign it to qemu-kvm.

Comment 2 Alex Jia 2012-03-15 09:32:17 UTC
It's a known qemu-kvm bug: https://bugzilla.redhat.com/show_bug.cgi?id=770328

Comment 3 dyuan 2012-03-16 02:18:05 UTC
I'll retested it from libvirt once the qemu-kvm bug is fixed.

Comment 7 Eric Blake 2013-07-12 19:24:00 UTC

*** This bug has been marked as a duplicate of bug 770328 ***