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
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.
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.
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