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

Bug 1438260

Summary: Failed to create VM from template with block-based raw disk as server
Product: [oVirt] ovirt-engine Reporter: Eyal Shenitzky <eshenitz>
Component: BLL.StorageAssignee: Liron Aravot <laravot>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.1.6CC: amureini, bugs, laravot, ratamir, tnisan
Target Milestone: ovirt-4.1.1-1Keywords: Automation, Regression
Target Release: 4.1.1.8Flags: rule-engine: ovirt-4.1+
rule-engine: blocker+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-21 09:42:45 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:
Attachments:
Description Flags
engine and vdsm logs none

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