Hide Forgot
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.
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.
It's a known qemu-kvm bug: https://bugzilla.redhat.com/show_bug.cgi?id=770328
I'll retested it from libvirt once the qemu-kvm bug is fixed.
*** This bug has been marked as a duplicate of bug 770328 ***