Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1435813

Summary: qemu-img convert trying to write beyond apparent size - QCOW to QCOW
Product: Red Hat Enterprise Virtualization Manager Reporter: Javier Coscia <jcoscia>
Component: vdsmAssignee: Fred Rolland <frolland>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Raz Tamir <ratamir>
Severity: high Docs Contact:
Priority: high    
Version: 4.0.6CC: bazulay, frolland, gklein, jcoscia, lsurette, mkalinin, rjones, srevivo, tnisan, ycui, ykaul, ylavi
Target Milestone: ovirt-4.1.2   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-24 14:20:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Javier Coscia 2017-03-24 21:13:37 UTC
Description of problem:

While trying to import a VM from a 3.1 environment in a 4.0, the operation fails almost at the end with:

CopyImageError: low level Image copy failed: ('ecode=1, stdout=, stderr=qemu-img: error while writing sector 33573504: No space left on device\n, message=None',)

The job wouldn't be removed and VM state would remain with 'image locked' which requires running taskcleaner.sh and change vm_dynamic status to '0' (zero)

Version-Release number of selected component (if applicable):

Source environment:
====================

rhevm-3.1.0-55.el6ev

qemu-img-rhev-0.12.1.2-2.479.el6_7.2.x86_64
qemu-kvm-rhev-0.12.1.2-2.479.el6_7.2.x86_64
qemu-kvm-rhev-tools-0.12.1.2-2.479.el6_7.2.x86_64
vdsm-4.16.27-1.el6ev.x86_64


Destination environment:
==========================

rhevm-4.0.6.3-0.1.el7ev

qemu-img-rhev-2.6.0-27.el7.x86_64
qemu-kvm-common-rhev-2.6.0-27.el7.x86_64
qemu-kvm-rhev-2.6.0-27.el7.x86_64       
qemu-kvm-tools-rhev-2.6.0-27.el7.x86_64 
vdsm-4.18.21.1-1.el7ev.x86_64


VM: RHEL 6 with 1 disk | qcow | thin provisioned

How reproducible:

100% in customer's environment

Steps to Reproduce:
1. Export VM from 3.1 environment to an export domain with copyCollapsed
2. detach > attach export domain from 3.1 to 4.0
3. Import VM to current 4.0 environment

Actual results:

Import process ends with failure almost at the end of the convert

Expected results:

Import should succeed

Comment 4 Yaniv Kaul 2017-03-24 22:12:26 UTC
Is it on 4.0.6 or 4.0.7?

Comment 5 Javier Coscia 2017-03-24 22:25:56 UTC
(In reply to Yaniv Kaul from comment #4)
> Is it on 4.0.6 or 4.0.7?

It's in rhvm 4.0.6 & vdsm 4.0.6 too

~~~
rhevm-4.0.6.3-0.1.el7ev.noarch
ovirt-engine-4.0.6.3-0.1.el7ev.noarch

vdsm-4.18.21.1-1.el7ev.x86_64
~~~