Bug 1025827 - Creatin a thin-provisioned new VM from template takes ~20 minutes when "Optimize for" is set to Server (Desktop is instant)
Summary: Creatin a thin-provisioned new VM from template takes ~20 minutes when "Optim...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 3.3.0
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-01 17:02 UTC by David Jaša
Modified: 2013-11-01 18:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-01 18:04:48 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.