Bug 1529666
Summary: | "qemu-img commit" reports error for luks format image | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yilzhang |
Component: | qemu-kvm-rhev | Assignee: | Eric Blake <eblake> |
Status: | CLOSED ERRATA | QA Contact: | Tingting Mao <timao> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.5 | CC: | ailan, areis, berrange, chayang, coli, eblake, juzhang, michen, mrezanin, ngu, pingl, qzhang, timao, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.12.0-1.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
yilzhang
2017-12-29 09:13:37 UTC
Failed to commit changes in the base luks image. Not sure it is a duplicate of this bug. packages tested: qemu-kvm-rhev-2.10.0-17.el7 Test steps: 1. Create an image chain as base.luks <- sn1.qcow2 <- sn2.qcow2. Boot guest with the created image and create temporary files base, sn1, and sn2 in turn. # qemu-img create -f luks --object secret,id=sec0,data=base -o key-secret=sec0 base.luks 20G # qemu-img create -f qcow2 --object secret,id=sec0,data=base -b 'json:{"driver": "luks", "file": {"driver": "file", "filename": "/home/tests/nfsclient/pingl/base.luks"}, "key-secret": "sec0"}' sn1.qcow2 # qemu-img create --object secret,id=sec0,data=base -f qcow2 -b sn1.qcow2 -F qcow2 sn2.qcow2 # qemu-img info sn2.qcow2 --backing-chain image: sn2.qcow2 file format: qcow2 virtual size: 20G (21474836480 bytes) disk size: 1.0G cluster_size: 65536 backing file: sn1.qcow2 backing file format: qcow2 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false image: sn1.qcow2 file format: qcow2 virtual size: 20G (21474836480 bytes) disk size: 1.0G cluster_size: 65536 backing file: json:{"driver": "luks", "file": {"driver": "file", "filename": "/home/tests/nfsclient/pingl/base.luks"}, "key-secret": "sec0"} Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false image: json:{"driver": "luks", "file": {"driver": "file", "filename": "/home/tests/nfsclient/pingl/base.luks"}, "key-secret": "sec0"} file format: luks virtual size: 20G (21474836480 bytes) disk size: 12G encrypted: yes Format specific information: ivgen alg: plain64 hash alg: sha256 cipher alg: aes-256 uuid: 11b118be-f4c3-4b04-b3c3-5f3fc073acaa cipher mode: xts slots: [0]: active: true iters: 499024 key offset: 4096 stripes: 4000 [1]: active: false key offset: 262144 [2]: active: false key offset: 520192 [3]: active: false key offset: 778240 [4]: active: false key offset: 1036288 [5]: active: false key offset: 1294336 [6]: active: false key offset: 1552384 [7]: active: false key offset: 1810432 payload offset: 2068480 master key iters: 148945 2. Commit the changes in base image # qemu-img commit --object secret,id=sec0,data=base -f qcow2 -b base.luks sn2.qcow2 qemu-img: Did not find 'base.luks' in the backing chain of 'sn2.qcow2' 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 |