Bug 1438260 - Failed to create VM from template with block-based raw disk as server
Summary: Failed to create VM from template with block-based raw disk as server
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.1.1.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.1.1-1
: 4.1.1.8
Assignee: Liron Aravot
QA Contact: Raz Tamir
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-02 13:53 UTC by Eyal Shenitzky
Modified: 2017-04-21 09:42 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-04-21 09:42:45 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: blocker+


Attachments (Terms of Use)
engine and vdsm logs (1.96 MB, application/x-gzip)
2017-04-02 13:53 UTC, Eyal Shenitzky
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 75022 0 master MERGED core: ImagesHandler - computeCowImageNeededSize() 2017-04-03 20:53:28 UTC
oVirt gerrit 75097 0 ovirt-engine-4.1 MERGED core: ImagesHandler - computeCowImageNeededSize() 2017-04-03 20:54:26 UTC
oVirt gerrit 75098 0 ovirt-engine-4.1.1.z MERGED core: ImagesHandler - computeCowImageNeededSize() 2017-04-03 20:55:08 UTC

Description Eyal Shenitzky 2017-04-02 13:53:40 UTC
Created attachment 1268225 [details]
engine and vdsm logs

Description of problem:
Failed to create VM from template with block-based raw disk as server


Version-Release number of selected component (if applicable):
RHEVM- 4.1.1.6-0.1.el7
VDSM -  4.19.10-1.el7ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create VM with preallocated 1 GB disk on block-based domain
2. Create Template from the VM in step 1 with the disk on block-base domain as raw
3. Create VM from the template in step 3 as 'server' VM and verify the target domain is block-based domain and the format is QCOW_2

Actual results:
VM creation Failed

Expected results:
VM should create successfully 


Additional info:
Engine and VDSM logs attached

Comment 1 Liron Aravot 2017-04-02 17:55:33 UTC
When adding a server vm based on a template the engine calculates the initial size (on block domains) required for the destination images.
When the source and the target of both COW, the size should be the same. When the source is RAW and the destination is COW more space needs to be allocated for the header.

Comment 2 Red Hat Bugzilla Rules Engine 2017-04-03 08:14:16 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Raz Tamir 2017-04-12 13:17:25 UTC
Verified on rhevm-4.1.1.8-0.1.el7.
Followed the steps to reproduce - the VM was cloned with COW disk on block-based storage domain


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