Hide Forgot
Created attachment 1218686 [details] GetVmTemplatesDisksQuery failure/NPE Description of problem: I am unable to create vms from new templates in ovirt 4.0.4 I have tried with cinder/ceph backed storage and iscsi backed storage. The template will seem to be successfully created, but new vms can not be created from the template successfully. The same error is seen trying to create the vm as trying to look at the disk on the template. Version-Release number of selected component (if applicable): oVirt Engine Version: 4.0.4.4-1.el7.centos How reproducible: Very. Steps to Reproduce: 1. Create VM 2. Create Template From VM 3. View disks tab of Template. Actual results: Spinning load on web UI, error in engine.log Expected results: Show the template disk. Additional info: engine.log snippet attached
Relevant part of the log: 2016-11-08 15:53:28,166 ERROR [org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery] (default task-24) [] Exception: java.lang.NullPointerException at org.ovirt.engine.core.common.businessentities.storage.BaseDisk.setDiskVmElements(BaseDisk.java:83) [common.jar:] at org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.executeQueryCommand(GetVmTemplatesDisksQuery.java:28) [bll.jar:] at org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:103) [bll.jar:] at org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33) [dal.jar:] at org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:558) [bll.jar:] at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:529) [bll.jar:]
This issue was fixed in version 4.0.5 *** This bug has been marked as a duplicate of bug 1378402 ***