Bug 818449
| Summary: | mirroring in QMP transaction with "full"=false is treated as "full"=true | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Shaolong Hu <shu> | 
| Component: | qemu-kvm | Assignee: | Paolo Bonzini <pbonzini> | 
| Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> | 
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.3 | CC: | acathrow, areis, bsarathy, dyasny, eblake, juzhang, michen, mkenneth, pbonzini, virt-maint | 
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-07-12 08:39:50 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 806280 | ||
| The issue here is that drive-mirror uses the disk at the *beginning* of the transaction as the source, rather than the disk at the current point of the transaction. It can be fixed, but libvirt is not using the transaction functionality and it will not be included in the upstream code. For this reason a WONTFIX would be nice if libvirt and vdsm guys agree. Federico/Eric, any opinion? I'm agreed that a WONTFIX for 6.3 is appropriate; streaming mirror without transaction solves the original design problem of storage migration as needed by vdsm, and libvirt doesn't expose snapshot+mirror transactions (I wrote the patches for that, but they were not applied), so the only other way to exercise this code path would be by unsupported raw monitor commands. Moved to 6.4, waiting for Federico's ack to WONTFIX it. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4. > libvirt is not using the transaction functionality and it will not be included 
> in the upstream code
Closing, the mirror transaction functionality is effectively dead code.
 | 
Description of problem: ------------------------ mirroring in QMP transaction with "full"=false is treated as "full"=true Version-Release number of selected component (if applicable): -------------------------------------------------------------- qemu-kvm-rhev-0.12.1.2-2.282.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.288.el6.x86_64 How reproducible: ----------------- 100% Steps to Reproduce: -------------------- 1.start guest with base: { "execute": "transaction", "arguments": { "actions": [ { 'type': 'blockdev-snapshot-sync', 'data' : { "device": "drive-virtio-disk0", "snapshot-file": "/root/sn1", "format": "qcow2" } }, { 'type': '__com.redhat_drive-mirror', 'data' : { "device": "drive-virtio-disk0", "target": "/root/sn2", "mode": "absolute-paths", "format": "qcow2", "full": false } } ] } } 2. in step 1, i specify "full"=false, but after step 1, base is copied to sn2 3. [root@shu ~]# qemu-img info sn1 image: sn1 file format: qcow2 virtual size: 30G (32212254720 bytes) disk size: 31M cluster_size: 65536 backing file: win7-64-virtio.qcow2 (actual path: win7-64-virtio.qcow2) [root@shu ~]# qemu-img info sn2 image: sn2 file format: qcow2 virtual size: 30G (32212254720 bytes) disk size: 7.6G cluster_size: 65536 [root@shu ~]# qemu-img info win7-64-virtio.qcow2 image: win7-64-virtio.qcow2 file format: qcow2 virtual size: 30G (32212254720 bytes) disk size: 7.4G cluster_size: 65536 here win7-64-virtio.qcow2 is the base. Expected results: ------------------ only sn1 is copied to sn2.