Bug 885047
Summary: | Improve error message after block_resize with big size | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | langfang <flang> |
Component: | qemu-kvm | Assignee: | Kevin Wolf <kwolf> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | acathrow, chayang, flang, hhuang, juli, juzhang, knoel, michen, mrezanin, qzhang, sluo, virt-maint, xfu, xigao |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 12:52:59 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: |
Description
langfang
2012-12-07 11:11:13 UTC
Fixed in upstream qemu.git commit 8732901e. Build in qemu-kvm-1.5.0-1.el7 Reproduce this bug: Version-Release number of selected component (if applicable): Host: qemu-kvm-1.4.0-4.el7.x86_64 1.Boot guest # <cli> -drive file=/root/test-bkl.qcow2_v3,if=none,id=drive-virtio0-2-1,media=disk,werror=stop,rerror=stop,cache=none,format=qcow2 \ -device virtio-blk-pci,bus=pcie.0,drive=drive-virtio0-2-1,id=virtio0-2-1 \ -drive file=/root/test-bkl-1.raw,if=none,id=drive 2.block_resize via qmp. { "execute": "block_resize", "arguments": { "device": "drive-virtio0-2-1", "size":50000000000000000000000000000}} {"error": {"class": "GenericError", "desc": "An undefined error has occurred"}} ---------- Verify this bug: both virtio-blk and virtio-scsi interface, and qcow2_v3 and raw format disk. Version-Release number of selected component (if applicable): Host: qemu-kvm-rhev-1.5.3-9.el7.x86_64 3.10.0-34.el7.x86_64 Scenarios 1(virtio-scsi and qcow2_v3): #<cli> -drive file=/root/test-scsi.qcow2_v3,if=none,id=storage1-1,media=disk,cache=none,format=qcow2 \ -device virtio-scsi-pci,id=scsi2,ioeventfd=off \ -device scsi-hd,drive=storage1-1,bus=scsi2.0,scsi-id=0,lun=0,id=juli-2 # qemu-img info /root/test-scsi.qcow2_v3 image: /root/test-scsi.qcow2_v3 file format: qcow2 virtual size: 69G (73741824000 bytes) disk size: 140K cluster_size: 65536 (qemu) block_resize storage1-1 20G qcow2 doesn't support shrinking images yet { "execute": "block_resize", "arguments": { "device": "storage1-1", "size":5368709120}} {"error": {"class": "GenericError", "desc": "this feature or command is not currently supported"}} Scenarios 2(virtio-scsi and raw): # <cli> -drive file=/root/test-scsi-1.raw,if=none,id=storage1-2,media=disk,cache=none,format=raw \ -device virtio-scsi-pci,id=scsi3,ioeventfd=off \ -device scsi-hd,drive=storage1-2,bus=scsi3.0,scsi-id=0,lun=0,id=juli-3 # qemu-img info /root/test-scsi-1.raw image: /root/test-scsi-1.raw file format: raw virtual size: 10G (10737418240 bytes) disk size: 0 (qemu) block_resize storage1-2 5G (qemu) block_resize storage1-2 10G { "execute": "block_resize", "arguments": { "device": "storage1-2", "size":5368709120}} {"return": {}} { "execute": "block_resize", "arguments": { "device": "storage1-2", "size":21474836480}} {"return": {}} Scenarios 3(virtio-blk and qcow2_v3): # <cli> -drive file=/root/test-bkl.qcow2_v3,if=none,id=drive-virtio0-2-1,media=disk,werror=stop,rerror=stop,cache=none,format=qcow2 \ -device virtio-blk-pci,bus=pcie.0,drive=drive-virtio0-2-1,id=virtio0-2-1 # qemu-img info /root/test-bkl.qcow2_v3 image: /root/test-bkl.qcow2_v3 file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 136K cluster_size: 65536 (qemu) block_resize drive-virtio0-2-1 5G qcow2 doesn't support shrinking images yet this feature or command is not currently supported { "execute": "block_resize", "arguments": { "device": "drive-virtio0-2-1", "size":5368709120}} {"error": {"class": "GenericError", "desc": "this feature or command is not currently supported"}} (qemu) block_resize drive-virtio0-2-1 20G { "execute": "block_resize", "arguments": { "device": "drive-virtio0-2-1", "size":21474836480}} {"return": {}} Scenarios 4(virtio-blk and raw): # <cli> -drive file=/root/test-bkl-1.raw,if=none,id=drive-virtio0-2-2,media=disk,werror=stop,rerror=stop,cache=none,format=raw \ -device virtio-blk-pci,bus=pcie.0,drive=drive-virtio0-2-2,id=virtio0-2-2 # qemu-img info /root/test-bkl-1.raw image: /root/test-bkl-1.raw file format: raw virtual size: 10G (10737418240 bytes) disk size: 0 (qemu) block_resize drive-virtio0-2-2 5G (qemu) block_resize drive-virtio0-2-2 20G { "execute": "block_resize", "arguments": { "device": "drive-virtio0-2-2", "size":5368709120}} {"return": {}} { "execute": "block_resize", "arguments": { "device": "drive-virtio0-2-2", "size":21474836480}} {"return": {}} -- Based on above test, I think this bug is verified. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |