Red Hat Bugzilla – Bug 1473145
Wrong allocation value after virDomainBlockCopy() (alloc=capacity)
Last modified: 2017-08-01 19:25:33 EDT
This bug has been copied from bug #1470634 and has been proposed to be backported to 7.4 z-stream (EUS).
Fix included in qemu-kvm-rhev-2.9.0-16.el7_4.3
Verified from qemu-kvm-rhev side: Version: qemu-kvm-rhev-2.9.0-16.el7_4.3.x86_64 Steps: 1. Launch guest with a secondary disk: /usr/libexec/qemu-kvm -name rhel7_4 -m 1G -smp 2 -drive file=/home/kvm_autotest_root/images/rhel74-64-virtio.qcow2,format=qcow2,id=drive_image1,if=none,cache=none,media=disk -device virtio-blk-pci,drive=drive_image1,id=virtio-blk-0,bootindex=0 -qmp stdio -vnc :3 -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=70:e2:84:14:0e:15 \ -drive file=/home/test.raw,id=drive_image2,format=raw,if=none,cache=none,media=disk -device virtio-blk-pci,drive=drive_image2,id=virtio-blk-1 2. Live snapshot: { "execute": "blockdev-snapshot-sync", "arguments": { "device": "drive_image2","snapshot-file": "/home/sn1", "format": "qcow2", "mode": "absolute-paths" } } 3. Drive mirror with option sync=top { "execute": "drive-mirror", "arguments": { "device": "drive_image2", "target":"/home/mirror.qcow2", "sync":"top", "mode": "existing"}} 4. Query block and check the information of drive_image2. Result: No extra node added and the backing_file_depth keep to 1: {"device": "drive_image2", "inserted": { "image": { "backing-image": { "virtual-size": 104857600, "filename": "/home/test.raw", "format": "raw", "actual-size": 0, } "backing-filename-format": "raw", "virtual-size": 104857600, "filename": "/home/sn1", "cluster-size": 65536, "format": "qcow2", "actual-size": 200704, "full-backing-filename": "/home/test.raw", "backing-filename": "/home/test.raw", } "node-name": "#block1002", "backing_file_depth": 1, "drv": "qcow2", "backing_file": "/home/test.raw", "file": "/home/sn1", } }
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/RHSA-2017:2390