Bug 1025827

Summary: Creatin a thin-provisioned new VM from template takes ~20 minutes when "Optimize for" is set to Server (Desktop is instant)
Product: Red Hat Enterprise Virtualization Manager Reporter: David Jaša <djasa>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, iheim, lpeer, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-01 18:04:48 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 David Jaša 2013-11-01 17:02:05 UTC
Description of problem:
Creatin a thin-provisioned new VM from template takes ~20 minutes when "Optimize for" is set to Server (Desktop is instant)

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

How reproducible:
always

Steps to Reproduce:
1. have a template with thin-provisioned disk with few GB Actual Size
2. create a "Optimized for: Desktop" VM, make sure that "Thin Provision" is in resource allocation
3. create a "Optimized for: Server" VM, make sure that "Thin Provision" is in resource allocation

Actual results:
2. action takes few seconds
3. action takes dozens of minutes

Expected results:
action is almost instant in both cases

Additional info:
going through SPM logs, this catched my eye - compare Optimized for Desktop:
4a7bca6f-e9cb-4058-96c4-c3885158a9ab::DEBUG::2013-11-01 17:46:34,631::volume::1058::Storage.Misc.excCmd::(createVolume) '/usr/bin/qemu-img create -f qcow2 -F qcow2 -b ../27501c26-85a5-4014-b873-352c5f5a3049/94aa9928-0e22-41c1-aa24-27aab861a017 /rhev/data-center/5849b030-626e-47cb-ad90-3ce782d831b3/d5a781d6-a319-4d9f-9d1a-1f776f709911/images/27501c26-85a5-4014-b873-352c5f5a3049/1b9166ab-0b00-
489d-b757-93a24418fa7d' (cwd /rhev/data-center/5849b030-626e-47cb-ad90-3ce782d831b3/d5a781d6-a319-4d9f-9d1a-1f776f709911/images/27501c26-85a5-4014-b873-352c5f5a3049)

vs. optimize for server:
f6643c8b-08cd-4a0d-8112-b9b7dfab40ab::DEBUG::2013-11-01 17:50:24,594::volume::1058::Storage.Misc.excCmd::(createVolume) '/usr/bin/qemu-img create -f qcow2 /rhev/data-center/5849b030-626e-47cb-ad90-3ce782d831b3/d5a781d6-a319-4d9f-9d1a-1f776f709911/images/f6d2469b-522b-4591-8f98-56503c304247/9b7f767c-7cff-4aef-9e1f-d98b3b861eee 10240K' (cwd None)

(I may have mixed the two up - but why is the difference there in the first place?)

Comment 1 David Jaša 2013-11-01 18:04:48 UTC
Hm, the base of the bug is PEBKAC on my side, I completely overlooked the "Template provisioning" radiobuttons in the new layout. When set to Thin, everything works as expected.