Bug 1393068 - GetVmTemplatesDisksQuery failed when using template with Cinder disks
Summary: GetVmTemplatesDisksQuery failed when using template with Cinder disks
Keywords:
Status: CLOSED DUPLICATE of bug 1378402
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 4.0.4.4
Hardware: x86_64
OS: Linux
unspecified
medium vote
Target Milestone: ovirt-4.0.5
: ---
Assignee: Tal Nisan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-08 19:28 UTC by Jordan Conway
Modified: 2016-11-09 13:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-09 13:49:59 UTC
oVirt Team: Storage
rule-engine: ovirt-4.0.z+


Attachments (Terms of Use)
GetVmTemplatesDisksQuery failure/NPE (13.00 KB, text/plain)
2016-11-08 19:28 UTC, Jordan Conway
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.