| Summary: | Cannot upgrade/downgrade qcow2 images | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Kevin Wolf <kwolf> |
| Component: | qemu-kvm | Assignee: | Hanna Czenczek <hreitz> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | acathrow, hhuang, juzhang, qiguo, virt-maint |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-1.5.3-35.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 10:54:45 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: | |
|
Description
Kevin Wolf
2013-11-22 08:43:58 UTC
Fix included in qemu-kvm-1.5.3-35.el7 Reproduced this bug with qemu-kvm-1.5.3-19.el7.x86_64 & qemu-img-1.5.3-19.el7.x86_64
Steps:
A.
1.#qemu-img create -f qcow2 -o compat=0.10 /tmp/test.qcow2 1G
2.check help of qemu-img
# qemu-img --help |grep amend
#
* there's no help infos about amend
3.#qemu-img amend -f qcow2 -o compat=1.1 /tmp/test.qcow2
* this command can not be executed, just output the help infos of qemu-img
B.
1.# qemu-img create -f qcow2 -o compat=1.1 /tmp/test.qcow2 1G
2.# qemu-img amend -f qcow2 -o compat=0.10 /tmp/test.qcow2
* this command can not be executed, just output the help infos of qemu-img
So this bug is reproduced by qemu-kvm-1.5.3-19.el7.x86_64 & qemu-img-1.5.3-19.el7.x86_64
Verify this bug with qemu-kvm-1.5.3-37.el7.x86_64 & qemu-img-1.5.3-37.el7.x86_64
Steps:
A.
1.# qemu-img create -f qcow2 -o compat=0.10 /tmp/test.qcow2 1G
Formatting '/tmp/test.qcow2', fmt=qcow2 size=1073741824 compat='0.10' encryption=off cluster_size=65536 lazy_refcounts=off
2.check help of qemu-img
# qemu-img --help |grep amend
amend [-q] [-f fmt] -o options filename
3.# qemu-img amend -f qcow2 -o compat=1.1 /tmp/test.qcow2
* command can be finished successfully
4.# qemu-img info /tmp/test.qcow2
image: /tmp/test.qcow2
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 196K
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
So the compat is successfully upgrated to 1.1
B
1.# qemu-img create -f qcow2 -o compat=1.1 /tmp/test.qcow2 1G
Formatting '/tmp/test.qcow2', fmt=qcow2 size=1073741824 compat='1.1' encryption=off cluster_size=65536 lazy_refcounts=off
2.# qemu-img amend -f qcow2 -o compat=0.10 /tmp/test.qcow2
3.# qemu-img info /tmp/test.qcow2
image: /tmp/test.qcow2
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 196K
cluster_size: 65536
Format specific information:
compat: 0.10
So the compat is successfully downgrade to 0.10
So according to above, this bug has been fixed.
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. |