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

Bug 1393068

Summary: GetVmTemplatesDisksQuery failed when using template with Cinder disks
Product: [oVirt] ovirt-engine Reporter: Jordan Conway <jconway>
Component: GeneralAssignee: Tal Nisan <tnisan>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.4.4CC: amureini, bugs, tnisan
Target Milestone: ovirt-4.0.5Flags: rule-engine: ovirt-4.0.z+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-09 13:49:59 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
GetVmTemplatesDisksQuery failure/NPE none

Description Jordan Conway 2016-11-08 19:28:28 UTC
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

Comment 1 Allon Mureinik 2016-11-09 08:45:32 UTC
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:]

Comment 2 Tal Nisan 2016-11-09 13:49:59 UTC
This issue was fixed in version 4.0.5

*** This bug has been marked as a duplicate of bug 1378402 ***