Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 672187 - Improper responsive message when shrinking qcow2 image
Improper responsive message when shrinking qcow2 image
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
6.1
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Kevin Wolf
Virtualization Bugs
:
Depends On:
Blocks: 580953
  Show dependency treegraph
 
Reported: 2011-01-24 05:48 EST by Shirley Zhou
Modified: 2015-03-04 19:52 EST (History)
4 users (show)

See Also:
Fixed In Version: qemu-kvm-0.12.1.2-2.134.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-05-19 07:29:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0534 normal SHIPPED_LIVE Important: qemu-kvm security, bug fix, and enhancement update 2011-05-19 07:20:36 EDT

  None (edit)
Description Shirley Zhou 2011-01-24 05:48:27 EST
Description of problem:
Improper responsive messages when shrinking qcow2 image

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.129.el6.x86_64

+++ This bug was initially created as a clone of Bug #613893 +++

While this bug reproduce when truncate size smaller than initiate size.
# qemu-img create -f qcow2 test.img 2G
Formatting 'test.img', fmt=qcow2 size=2147483648 encryption=off cluster_size=0 
# qemu-io test.img
qemu-io> truncate 1G
truncate: Unknown error 18446744073709551521

BTW this issue does not exist on raw format.

So change status to assigned.

--- Additional comment from kwolf@redhat.com on 2011-01-19 09:32:06 EST ---

qcow2 only supports growing images, not shrinking. So this is the expected result (except that qemu-io doesn't get the right error message).

--- Additional comment from szhou@redhat.com on 2011-01-19 21:30:23 EST ---

(In reply to comment #10)
> qcow2 only supports growing images, not shrinking. So this is the expected
> result (except that qemu-io doesn't get the right error message).

Kevin, would you prefer fix this error message on this bug or prefer open a separate one?

--- Additional comment from szhou@redhat.com on 2011-01-24 05:38:26 EST ---

(In reply to comment #10)
> qcow2 only supports growing images, not shrinking. So this is the expected
> result (except that qemu-io doesn't get the right error message).

According to comment 9 and comment 10, this issue has already been fixed.

And I will open another bug to track error message issue.
Comment 6 Shirley Zhou 2011-02-11 04:11:25 EST
Verify this bug with qemu-kvm-0.12.1.2-2.144.el6.x86_64 as following

]# qemu-img create -f qcow2 test.img 2G
Formatting 'test.img', fmt=qcow2 size=2147483648 encryption=off cluster_size=0 
# qemu-io test.img
qemu-io> truncate 1G
truncate: Operation not supported

So this bug has been fixed.
Comment 8 Miya Chen 2011-03-09 21:07:18 EST
move to verified based on comment#6.
Comment 9 errata-xmlrpc 2011-05-19 07:29:38 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0534.html
Comment 10 errata-xmlrpc 2011-05-19 09:01:16 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0534.html

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