Bug 1537956
Summary: | RFE: qemu-img amend should list the true supported options | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ping Li <pingl> |
Component: | qemu-kvm-rhev | Assignee: | Hanna Czenczek <hreitz> |
Status: | CLOSED ERRATA | QA Contact: | Tingting Mao <timao> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.5 | CC: | chayang, juzhang, knoel, michen, mtessun, ngu, pingl, virt-maint |
Target Milestone: | rc | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.12.0-6.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-11-01 11:04:08 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
Ping Li
2018-01-24 07:36:39 UTC
Sent an upstream series: http://lists.nongnu.org/archive/html/qemu-block/2018-04/msg00456.html Fix included in qemu-kvm-rhev-2.12.0-6.el7 Based on my testing, encryption, cluster_size, and preallocation couldn't be changed for qcow2 image but it is indeed listed for qemu-img amend. Although I think these options should be removed and some information should be corrected, but I think it still could be accepted according to Max's commit logs. Set the bug as verified. Thanks Max. Packages tested: kernel-3.10.0-916.el7 qemu-kvm-rhev-2.12.0-6.el7 Test steps: 1. Get supported options for qemu-img amend 1) raw format # qemu-img amend -f raw -o ? qemu-img: Format driver 'raw' does not support option amendment 2) luks format # qemu-img amend -f luks -o ? qemu-img: Format driver 'luks' does not support option amendment 3) qcow2 format # qemu-img amend -f qcow2 -o ? Creation options for 'qcow2': ----> This should be Amendment options size Virtual disk size compat Compatibility level (0.10 or 1.1) backing_file File name of a base image backing_fmt Image format of the base image encryption Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes) encrypt.format Encrypt the image, format choices: 'aes', 'luks' encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase encrypt.cipher-alg Name of encryption cipher algorithm encrypt.cipher-mode Name of encryption cipher mode encrypt.ivgen-alg Name of IV generator algorithm encrypt.ivgen-hash-alg Name of IV generator hash algorithm encrypt.hash-alg Name of encryption hash algorithm encrypt.iter-time Time to spend in PBKDF in milliseconds cluster_size qcow2 cluster size preallocation Preallocation mode (allowed values: off, metadata, falloc, full) lazy_refcounts Postpone refcount updates refcount_bits Width of a reference count entry in bits Note that not all of these options may be amendable. ---> this should be useful 2. Changed the options 1) encryption # qemu-img amend --object secret,id=sec0,data=base -f qcow2 -o encrypt.format=luks,encrypt.key-secret=sec0 base.qcow2 qemu-img: Changing the encryption format is not supported 2) cluster_size # qemu-img amend -f qcow2 -o cluster_size=2M base.qcow2 qemu-img: Changing the cluster size is not supported 3) preallocation mode # qemu-img amend -f qcow2 -o preallocation=full base.qcow2 qemu-img: Cannot change preallocation mode Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3443 |