Created attachment 790050 [details] oVirt engine log Description of problem: When trying to create a VM from template the operation never finishes, the log reports a null pointer exception in AddVmFromTemplateCommand. I suspect this might be related to the template having no disks, works fine when a disk exists. See the log file, look for VMs "temp2" and "temp3". Version-Release number of selected component (if applicable): oVirt 3.3 How reproducible: Always, for that template. Steps to Reproduce: 1. Create VM with a couple of NICs and attached profiles (probably irrelevant, but that's exactly what I did) but no disk. 2. Create a template from it. 3. Create VMs from template. Actual results: Actions stalls and engine reports a null pointer exception. Expected results: VM is created as usual. Additional info:
*** Bug 988319 has been marked as a duplicate of this bug. ***
*** Bug 979932 has been marked as a duplicate of this bug. ***
3.3/is11 This issue should be also tested when this BZ is fixed: >>> I had created a VM without NIC, nor Disk >>> I changed the display to VNC (with 2 monitors) >>> I create a template from this VM, >>> >>> When I am trying to create new vm i get error (Webadmin - unexpected >>> error) From Tomas Jelinek: I would say that the exception mentioned by you is just a consequence of this one - so this should already be fixed and hopefully available in the next IS. 2013-08-28 09:32:56,092 ERROR [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (ajp-/127.0.0.1:8702-5) Command org.ovirt.engine.core.bll.AddVmFromTemplateCommand throw exception: java.lang.NullPointerException at org.ovirt.engine.core.bll.VmCommand.endActionOnDisks(VmCommand.java:206) [bll.jar:] at org.ovirt.engine.core.bll.VmCommand.endVmCommand(VmCommand.java:200) [bll.jar:] at org.ovirt.engine.core.bll.VmCommand.endSuccessfully(VmCommand.java:244) [bll.jar:] at org.ovirt.engine.core.bll.AddVmFromTemplateCommand.executeVmCommand(AddVmFr omTemplateC
verified using is12 verification steps - 1. Create VM with a couple of NICs and attached profiles (probably irrelevant, but that's exactly what I did) but no disk. 2. Create a template from it. 3. Create VMs from template.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2014-0038.html