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

Bug 1225517

Summary: [engine-backend] Engine ignores image creation when creating a VM from templates list
Product: [oVirt] ovirt-engine Reporter: Elad <ebenahar>
Component: GeneralAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: medium    
Version: ---CC: bugs, ecohen, gklein, lsurette, michal.skrivanek, rbalakri, tjelinek, yeylon
Target Milestone: ovirt-3.6.0-rcFlags: rule-engine: ovirt-3.6.0+
ylavi: planning_ack+
rule-engine: devel_ack+
pnovotny: testing_ack+
Target Release: 3.6.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: 3.6.0-4_alpha3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-27 07:48:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1117484    
Attachments:
Description Flags
sosreport and vdsm.log none

Description Elad 2015-05-27 14:59:51 UTC
Created attachment 1030602 [details]
sosreport and vdsm.log

Description of problem:
Tried to create a new VM out of a template (Blank, which doesn't have any disks attached), from the templates list (https://bugzilla.redhat.com/show_bug.cgi?id=1117484). In the VM creation prompt, created a new image disk. After its creation, the VM doesn't have any disks attached to it. The image creation request from admin is ignored by engine.

Version-Release number of selected component (if applicable):
ovirt-engine-3.6.0-0.0.master.20150519172219.git9a2e2b3.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. In webadmin, navigate to Templates-> click on 'Blank' template-> 'New VM'
2. Create a disk from the VM creation prompt and commit VM creation by clicking OK


Actual results:
Image creation is not initiated by engine, the new VM is diskless.

Here is the VM creation in engine.log:
2015-05-27 17:36:40,810 INFO  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (ajp--127.0.0.1-8702-3) [63e308b4] Running command: AddVmFromTemplateCommand internal: false. Entities affected :  ID: 00000002-0002-0002-0002-000000000079 Type: VdsGroupsAction group CREATE_VM with role type USER,  ID: 12b28100-94d5-4059-aabd-477f2b8d3904 Type: VmTemplateAction group CREATE_VM with role type USER



Expected results:
Disk creation, while creating a new VM from templates list, shouldn't be ignored, the image should be created.

Additional info:
sosreport and vdsm.log

Comment 1 Petr Matyáš 2015-11-10 16:35:36 UTC
Verified on rhevm-3.6.0.3-0.1.el6.noarch

Disk is created and attached correctly

Comment 2 Sandro Bonazzola 2015-11-27 07:48:17 UTC
Since oVirt 3.6.0 has been released, moving from verified to closed current release.