Bug 679336

Summary: [vdsm][qemu-img]createVolume fails due to usage of preallocation=metadata in qemu-img command
Product: Red Hat Enterprise Linux 6 Reporter: Moran Goldboim <mgoldboi>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, eblake, iheim, jlibosva, srevivo, syeghiay, xen-maint, ykaul
Target Milestone: rcKeywords: Regression, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.9-50.el6.x86_64 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-19 15:27:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
vdsm log none

Description Moran Goldboim 2011-02-22 10:10:06 UTC
Created attachment 480090 [details]
vdsm log

Description of problem:
when trying to create an image (thin provision) using vsdm it fails: 
7cd86f12-0aa1-43e7-b5f6-7bc3b06d776c::DEBUG::2011-02-21 15:49:34,334::volume::863::Storage.Misc.excCmd::(createVolume) '/usr/bin/qemu-img create -f qcow2 -o preallocation=metadata -F raw
 -b ../262215c5-9973-4d9a-b440-67039ad1761c/1945c6e9-ddd3-4506-896e-2a06ce7e0666 /rhev/data-center/07bf7773-b187-4540-bbef-1f3f33d5ceea/dd54489a-aed5-4a90-bd0e-bb07b015bcea/images/262215
c5-9973-4d9a-b440-67039ad1761c/4a720b48-6d5c-4409-8196-70d1691a5fdc' (cwd /rhev/data-center/07bf7773-b187-4540-bbef-1f3f33d5ceea/dd54489a-aed5-4a90-bd0e-bb07b015bcea/images/262215c5-9973
-4d9a-b440-67039ad1761c)
7cd86f12-0aa1-43e7-b5f6-7bc3b06d776c::DEBUG::2011-02-21 15:49:34,341::volume::863::Storage.Misc.excCmd::(createVolume) FAILED: <err> = 'Backing file and preallocation cannot be used at the same time\n/rhev/data-center/07bf7773-b187-4540-bbef-1f3f33d5ceea/dd54489a-aed5-4a90-bd0e-bb07b015bcea/images/262215c5-9973-4d9a-b440-67039ad1761c/4a720b48-6d5c-4409-8196-70d1691a5fdc: error while creating qcow2: Invalid argument\n'; <rc> = 1

Version-Release number of selected component (if applicable):
vdsm-4.9-49.el6.x86_64
libvirt-0.8.7-7.el6.x86_64
device-mapper-multipath-0.4.9-37.el6.x86_64
qemu-kvm-0.12.1.2-2.144.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.create a thin provision vm from template
2.
3.
  
Actual results:
vm isn't created 

Expected results:


Additional info:

Comment 3 Than Ngo 2011-02-22 14:07:18 UTC
urw-fonts is not the correct component, this issue looks like a bug in libvirt.

Comment 4 Jakub Libosvar 2011-02-25 13:29:52 UTC
Works with qemu-kvm-0.12.1.2-2.146.el6.x86_64 - vdsm version is the same as Moran had.